import sys n = int(input()) a = 1 for i in range(n): a = a + i print(a, end = " ") b = a for j in range(n-i-1): b = b + 2 + j + i print(b, end = " ") print("")