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