Problem2151--Find factor

2151: Find factor

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 191  Solved: 39
[Submit] [Status] [Web Board] [Creator:]

Description

Write the function void fun(int x, int *p, int *n), implementation: input a positive integer x, use the pointer to find the odd factor of x, and put it in the array pointed to by p in descending order, the factor The number of is returned by the formal parameter. If the value of x is 36, it returns 9, 3.

Input

Given a positive integer

Output

Output its factor

Sample Input Copy

15

Sample Output Copy

5 3

Source/Category

192