v=int(input())
for i in range(1,v+1):
 if(v%i==0):
  print(i,end=" ")

2155964a68f0d3f99edfaea4374fb69f67f06a01
<mask token>

<mask token>
for i in range(1, v + 1):
    if v % i == 0:
        print(i, end=' ')

v = int(input())
for i in range(1, v + 1):
    if v % i == 0:
        print(i, end=' ')

v=int(input())
for i in range(1,v+1):
 if(v%i==0):
  print(i,end=" ")
