Problem2230--【入门】输出个位为5或者个位为8数

2230: 【入门】输出个位为5或者个位为8数

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

请从小到大输出1~n中所有个位为5或者个位为8的所有的整数,每行1个。



比如,假设n=20,那么满足条件的数输出如下:

5

8

15

18

Input

一个整数n

Output

1~n中所有满足条件的整数。

Sample Input Copy

25

Sample Output Copy

5
8
15
18
25

Source/Category