n=int(input("Enter the value of n "))
i=1
while i<=n:
    j=1
    while j<=i:
        print( j , end="")
        j = j + 1
    print()
    i = i + 1 
n=int(input("Enter the value of n "))
i=1
while i<=n:
    j=1
    while j<=i:
        print( j , end="")
        j = j + 1
    print()
    i = i + 1 