a=int(input("숫자입력"))
c=[]
d=0
g=0
while d<a:
e=0
b=[]
while e<a:
e=e+1
g=g+1
b.append(g)
c.append(b)
d=d+1
print(c)
b.reverse()
print(b)