n = int(input()) l = [] for i in range(n+1): for j in range(n+1): l.append(2**i * 5**j) l = sorted(set(l)) for i in l: print(i)