#coding;utf-8 def main(): N = int(input()) l = [] for i in range(1,N+1): if N % i == 0: l.append(i) else: pass for j in range(len(l)): print(l[j]) if __name__ == '__main__': main()