Problem1426--习题5-9 完数

1426: 习题5-9 完数

Time Limit: 1 Sec  Memory Limit: 12 MB
Submit: 36  Solved: 10
[Status] [Submit] [Creator:]

Description

一个数如果恰好等于它的因子和,这个数就称为“完数”。例如,6的因子为1,2,3,而6=1+2+3,所以6是“完数”。
编程输出1000以内的所有完数,每个完数输出一行,并按下面的格式输出其因子:
6 its factors are 1,2,3

Input

Output

每个完数输出一行,并按下面的格式输出其因子:
? its factors are ?,?,?
 

Sample Input Copy

Sample Output Copy


HINT

因子包含1但不包含其本身。