Problem1081--因子求和

1081: 因子求和

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 64 MiB

Description

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

Input

一个正整数n。

Output

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

Sample Input Copy

24

Sample Output Copy

35

Source/Category