# Write a program to print the pattern 
 

print("Enter the row and column size:")

row_size=int(input())
for out in range(row_size,0,-1):
    for i in range(row_size,0,-1):
        print(i,end="")

    print("\r")


