eolymp
bolt
Спробуйте наш новий інтерфейс для відправки розв'язків
Задачі

Remainders sum

Remainders sum

Ліміт часу 1 секунда
Ліміт використання пам'яті 256 MiB

Today at school Petya learnt what is the remainder and how to find it. To practice a bit, he took some integer n and calculated the sum of all remainders after dividing it by all integers from 1 to n. For example, for n = 6, remainders will be 0, 0, 0, 2, 1, and 0, so their sum is 3. Now to check his calculations he asks you to write a program to calculate this sum for any n.

Вхідні дані

The only line of input contains integer n (1n10^9).

Вихідні дані

Output the sum of remainders.

Приклад

Вхідні дані #1
1
Вихідні дані #1
0
Джерело ACM-ICPC Ukraine 2012, 2nd Stage Ukraine, September 6, 2012