The magic number 23#1696

The magic number 23

1 second
64 megabytes
Very easy

Given a positive integer , find a positive integer such that:

Thus, for N = 1 the condition is satisfied, for example, by K = 13223140496, since its length is , which is in the range from to , and the number is a perfect square.

Input

A single integer is given (1 \le N \le 2323).

Output

Print the required number . If there are several numbers satisfying the condition, output any of them. If such numbers do not exist, print 0.

Examples

Example 1

Loading
Loading