while 1: j=range(int(float(input())*2+1)) for i in j:print(*[[0,k*j[-k]][i+1==k] for k in j])