Problem1465--回文数字

1465: 回文数字

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

Description

小明刚认识回文数,他知道类似12321,123321这种规律数字,无论从左到右读还是从右向左读,都是相同的,这样的数字叫做回文数字。而且小C又是一个偶数之迷,他想知道从1-N中,有哪些是首位数是偶数的回文数呢?他想把他们都输出,你能帮助小明吗?

Input

一个正整数n1<=10<=1000000)

Output

若干行,每行包含一个满足要求的回文数字,数字按照从小到大的顺序排列输出。

Sample Input Copy

227

Sample Output Copy

2 4 6 8 22 44 66 88 202 212 222

Source/Category