Tommy, feeling sleepy during geography class, decides to work on his math homework to help him stay awake. However, upon opening his homework, he is taken aback by the difficulty of the problems. Unable to solve them, he seeks your assistance and asks you to solve them for him.
Given integers, , his homework asks him to calculate the sum of the squares of the factors of each integer.
Constraints
Subtask | Points | ||
---|---|---|---|
Input Specification
The first line of input contains an integer, .
The following lines each contains an integer, .
Output Specification
For each given number, output the sum of the squares of the factors of it.
Sample Input
2
3
5
Sample Output
10
26
Comments