#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 nn, print integers 1 through nn that are not divisible by 3, one per line. Skip multiples of 3 using continue. Print nothing when n=0n=0.

Input

One line contains integer nn.

Output

One qualifying number per line, or empty output.

Subtasks

  • Subtask 1 (20%): 0≤n≤80\le n\le 8.

  • Subtask 2 (30%): 0≤n≤400\le n\le 40.

  • Subtask 3 (50%): 0≤n≤1000\le n\le 100.

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.