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