a=int(input()) for i in range(1,a+1): for j in range(i,a+1): b=int((j*(j+1)+2)/2-i) if j==a and i!=a: print(b,end='\n') elif i==a: print(b,end='') else : print(b,end=' ')