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