# data[].attributes.body
Sangili
n=int(input ())
i=1
while i<=n:
j=1
while j<=n:
print(j, end="")
i=i+1
Print()

# data[].attributes.body
n=int(input())
for i in range (1,n+1):
for j in range (1,i+1):
print(j, end='')
print()

# data[].attributes.body
n=int(input())
i=1
while i<=n:
j=1
while j<=i:

# data[].attributes.body
n=int(input())
i=1
while(i<=n):
j=1
while(j<=i):
print(j,end"")
j=j+1
print()
i=i+1

# data[].attributes.body
n=int(input())

i=1
while i<=n:
    j=1
    while j<=i:
        print(j,end="")
           j=j+1
     print()
    i=i+1

# data[].attributes.body
N= int(input())
I=1
While I<=n
J=1
Whilej<=1
Print (j, end=" ")
J=j+1
I=i+1

# data[].attributes.body
n=int(input())
i=1
while i<=n:
j=1
while j<=1:
print(j,end="")
j=j+1
print()
i=i+1

# data[].attributes.body
n=int(input())
i=1
while  i<=n:
j=1
k=1
while j<=i;:
Print(k,end='')
k=k+1
j=j+1
print()
i=i+1

# data[].attributes.body
n=int(input())
i=1
count=1
while i<=n:
j=1
while j<=i:
print(count,end=" ")
count=count+1
j=j+1
print("")
i=i+1

# data[].attributes.body
n=int(input())
i=1
k=1
while i<=n:
j=1
while j<=i:
print(k,end="")
j=j+1
k=k+1
print()
i=i+1

# data[].attributes.body
N=int(input())
I=1
while (I<=n):
J=1
while(j<=i):
print(j, end="")
print()
I=i+1

# data[].attributes.body
n=int(input())
i=0
while i<=n:
j=1
while j<=i:
print(i,end=" ")
j=j+1

print()

# data[].attributes.body
n=int(input())
i=1
while i<=n:
j=1
while j<=i:
print(j,end="")
j+=1
print()
i+=1