n = int(input()) ans = [] for i in range(n+1): for j in range(n+1): ans.append((2**i)*(5**j)) ans.sort() for a in ans: print(a)