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