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