2655. Interesting Numbers

单点时限: 2.0 sec

内存限制: 256 MB

To play with the numbers is always interesting. Here is just one! Look at the number: 9376. We notice that: 9376 * 9376 = 87909376 with the last four digits the same as the number itself!

Here comes the problem. What the i-th number of this kinds of the number? Suppose that 0 is the first one.

输入格式

There are exactly 26 cases. Process to the end of file

Each case begin with N (1 <= N <= 26) in one line.

输出格式

Output the N-th number each in one line. It is promised that the number would be fit the 64-bit integer.

样例

Input
1
2
Output
0
1

22 人解决,34 人已尝试。

27 份提交通过,共有 92 份提交。

5.2 EMB 奖励。

创建: 15 年前.

修改: 6 年,11 月前.

最后提交: 1 年,1 月前.

来源: N/A

题目标签