Longge`s problem#1128

Longge`s problem

1 second
128 megabytes
Very easy

Longge is good at mathematics, and he likes to think about difficult mathematical problems that can be solved using elegant algorithms. Now he faces the following problem:

Given an integer , compute \sum \gcd(i,n) for all 1 \leq i \leq n.

"Oh, I know, I know!" Longge shouts. But do you? Please solve it.

Input

Each line contains one integer n~(1 < n < 2^{31}).

Output

For each integer , print on a separate line the sum \sum \gcd(i,n) for all 1 \le i \le n.

Examples

Example 1

Loading
Loading