Problem I: 自定义函数 完全数

Problem I: 自定义函数 完全数

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 34  Solved: 33
[Status] [Submit] [Creator:]

Description

求正整数2和n之间的完全数(一行一个数)。

完全数:一个数的因子(不包括这个数本身)之和等于它本身的自然数,如6=1+2+3

请你创建自定义函数来求一个数的因子(不包括这个数本身)之和。 

Input

输入n(n≤10000)

Output

一行一个数,按由小到大的顺序。

Sample Input Copy

10000

Sample Output Copy

6
28
496
8128