#CCBCHBON0000007. In số không chia hết cho 3 (Print Integers Not Divisible by Three)
In số không chia hết cho 3 (Print Integers Not Divisible by Three)
Print Integers Not Divisible by Three
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
For nonnegative , print integers 1 through that are not divisible by 3, one per line. Skip multiples of 3 using continue. Print nothing when .
Input
One line contains integer .
Output
One qualifying number per line, or empty output.
Subtasks
-
Subtask 1 (20%): .
-
Subtask 2 (30%): .
-
Subtask 3 (50%): .
Examples
Example 1
Input:
6
Output:
1
2
4
5
Explanation:
Skip multiples of three and print the remaining integers one per line.
Example 2
Input:
0
Output:
Explanation:
Skip multiples of three and print the remaining integers one per line.