4468: 含数字3且不是3的倍数

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:174 Solved:35

Description

输入一个正整数n
找出n以内(包含n)包含数字3且不是3的倍数的数。

Input

输入n

Output

	符合要求的数字,每个数字后换行 

Sample Input Copy

100

Sample Output Copy

13
23
31
32
34
35
37
38
43
53
73
83