1084: 【入门】因子求和

Memory Limit:64 MB Time Limit:1.000 S
Creator:
Submit:7 Solved:5

Description

已知一个正整数N(20 <= N <= 800000000),请你编写程序求出该数的全部因子(不包括1和n)的和。

Input

一个正整数n。

Output

一个整数代表n的因子和。

Sample Input

24

Sample Output

35