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
Constraints
Subtask | Points | ||
---|---|---|---|
Input Specification
The first line of input contains an integer,
The following
Output Specification
For each given number, output the sum of the squares of the factors of it.
Sample Input
Copy
2
3
5
Sample Output
Copy
10
26
Comments