n = int(input()) for i in range(n+1): for j in range(n+1): print(5**i * 2**j)