Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/for-boluvchilarini-chiqarish

Print the divisors

Easy 1000 ms 64 MB 23%
Share

A positive integer $n$ is given. Print all its positive divisors (including $1$ and $n$) in increasing order.

All positive divisors of the number

Input

One positive integer $n$.

Output

One line with all divisors in increasing order separated by spaces.

Note

$1 \le n \le 10^{5}$

Examples

Input #1
12
Output #1
1 2 3 4 6 12
Input #2
7
Output #2
1 7

Sign in to submit a solution

Signing up is free and takes a minute.