2143: 【入门】输出是2的倍数,但非3的倍数的数

Memory Limit:64 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:14 Solved:6

Description

请从键盘读入一个整数n,输出1~n中所有是2的倍数,但非3的倍数的数,每行1个。

比如,读入一个整数10,输出结果如下:

2

4

8

10

Input

一个整数n。

Output

按要求输出1~n中满足条件的整数,每行1个。

Sample Input Copy

10

Sample Output Copy

2
4
8
10