Tổng các ước

View as PDF

Points: 800 (p) Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

Nhập vào số nguyên dương \(n≤10^{14}\), tính tổng các ước dương của \(n\).

Input

  • Vào từ thiết bị nhập chuẩn số nguyên dương \(n\).

Output

  • Ghi ra thiết bị xuất chuẩn một số nguyên duy nhất là tổng các ước của \(n\).

Example

Test 1

Input
10
Output
18

Comments

There are no comments at the moment.