This page is still under construction.

Parts of this page are still being built. What you see may change.

Bedtime Reading I

Time limit2sMemory limit512 MB

Summary
Given an integer I, compute the sum of all its divisors.
Level

Easy2 of 10

Topics
Math, Number theory, Brute force
Solved
No attempts yet

Problem

The sigma function of a number is the sum of that number's divisors. For example, the divisors of 12 are 1, 2, 3, 4, 6, and 12, so the sigma function of 12 is 28.

Given an integer II, compute the sigma function of II.

Input

The first line contains an integer II (1≤I≤1 000 0001 \le I \le 1\,000\,000).

Output

Print the sum of all divisors of II on the first line.

Examples3

  1. Example 1

    Input
    12
    
    Expected output
    28
    
  2. Example 2

    Input
    1
    
    Expected output
    1
    
  3. Example 3

    Input
    2
    
    Expected output
    3