#B3953. Factors of a Positive Integer

    ID: 11610 Type: Default 1000ms 256MiB

Factors of a Positive Integer

Factors of a Positive Integer

Given a positive integer (a), if a positive integer (b) divides (a) (i.e., (a \mod b = 0)), then (b) is called a factor of (a).

Write a program to output all factors of (a) in ascending order.

inputFormat

The input consists of a single positive integer (a).

outputFormat

Output all factors of (a) in ascending order, separated by spaces.

sample

6
1 2 3 6