list1=[1,2,5,10] list2=[1,2,5,10] list3=[] N=int(input()) if N==0: print(1) elif N==1: for i in list1: print(i) else: for k in range(N-1): for i in range(len(list1)): for j in range(len(list2)): if list1[i]*list2[j] not in list3: list3.append(list1[i]*list2[j]) list1=list3 list3.sort() for l in range(len(list3)): print(list3[l])