eolymp
bolt
Try our new interface for solving problems
Problems

All divisors

All divisors

Find all divisors of positive integer $n$. \InputFile One positive integer $n~(n \le 10^9)$. \OutputFile Print in increasing order all divisors of number $n$.
Time limit 1 second
Memory limit 128 MiB
Input example #1
10
Output example #1
1 2 5 10 
Input example #2
36
Output example #2
1 2 3 4 6 9 12 18 36