Skip to main content
LIVE CONTEST: ALGOR Contest: Round #4 (Special Challenge) is live now!

~/algor $ cat problems/sonlar-boluvchilar-yigindisi

Sum of divisors

Medium 1000 ms 128 MB 60%
Share

You are given a positive integer $n$. Find the sum of all its positive divisors (including $1$ and $n$ itself).

All divisors of the number and their sum

Input

One positive integer $n$.

Output

One integer — the sum of the divisors.

Note

$1 \le n \le 10^{12}$

Examples

Input #1
12
Output #1
28
Input #2
7
Output #2
8

Sign in to submit a solution

Signing up is free and takes a minute.