1009: 输出倍数

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:89 Solved:65

Description

输出是2的倍数,但非3的倍数的数

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

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

Input

一个整数n。

Output

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

Sample Input Copy

10

Sample Output Copy

2
4
8
10