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.