row=int(input("Enter the number of rows: "))
num=1
iteration=1
while(iteration<=row):
    num=1
    while(num<=iteration):
        print(num,end='')
        num+=1
    iteration+=1
    print("\n")
input()
