N=int(input()) X=[] for i in range(N+1): for j in range(N+1): X.append(2**i*5**j) X.sort() print(*X,sep="\n")