Problem H: 【函数】【入门】求正整数2和n之间的完全数

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:253 Solved:164

Description

求正整数2和n之间的完全数

完全数:因子之和等于它本身的自然数,如6=1+2+3

Input

输入n

Output

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

Sample Input Copy

7

Sample Output Copy

6