St Andrews Online Judge

Sum of Divisors

By Kay Akashi

Time: 1000 ms
Memory: 256000 kB

The code judging system is only available during contests. Check out the github repo for test cases and solutions.

Please log in.

Problem Statement

Given an integer nn, output the sum of divisors of nn.

In the first example, divisors of 2020 are (1,2,4,5,10,20)(1, 2, 4, 5, 10, 20) hence the answer is 1+2+4+5+10+20=421 + 2 + 4 + 5 + 10 + 20 = 42.

In the second example, divisors of 20222022 are (1,2,3,6,337,674,1011,2022)(1, 2, 3, 6, 337, 674, 1011, 2022) hence the answer is 1+2+3+6+337+674+1011+2022=40561 + 2 + 3 + 6 + 337 + 674 + 1011 + 2022 = 4056.

Constraints

0<n10100 \lt n \leq 10^{10}.

Subtask 1 (30%)

0<n<1000 \lt n \lt 100.

Subtask 2 (30%)

100n<105100 \leq n \lt 10^{5}.

Subtask 3 (40%)

105n101010^{5} \leq n \leq 10^{10}.

Input

Input consists of a single integer, nn.

Output

Output the answer.

Examples

Input

20

Output

42

Input

2022

Output

4056