N = int(input()) for i in range(1,10**N+1): if N % i ==0: print(i)