Quirksome Squares: Input
Quirksome Squares: Input
The number 3025 has a remarkable quirk: if you split its decimal representation in two strings of equal
length (30 and 25) and square the sum of the numbers so obtained, you obtain the original number:
Input
The input of your program is a textflle containing numbers of digits (taken from 2,4,6,8), each number
on a line of its own.
Output
The output is a textfile consisting of lines containing the quirksome numbers (ordered according to the
input numbers and for each input number in increasing order).
Warning: Please note that the number of digits in the output is equal to the number in the corre-
sponding input line : leading zeroes may not be suppressed.
Sample Input
2
2
Sample Output
00
01
81
00
01
81