N = int(input())
A = (input()).split()
for i in range(0,N):
    A[i] = int(A[i])
for i in range(0,N):
    innum = A[i]
    j = i - 1
    while j>=0 and innum < A[j]:
        A[j+1] = A[j]
        j = j -1
    A[j+1] = innum
    for j in range(0,N):
        if j < N-1:
            print(A[j], end=" ")
        else:
            print(A[j]) N = int(input()) N int(input()) int input() input A = (input()).split() A (input()).split() input()).split input() input split for i in range(0,N):
    A[i] = int(A[i]) i range(0,N) range 0 N A[i] = int(A[i]) A[i] A i int(A[i]) int A[i] A i for i in range(0,N):
    innum = A[i]
    j = i - 1
    while j>=0 and innum < A[j]:
        A[j+1] = A[j]
        j = j -1
    A[j+1] = innum
    for j in range(0,N):
        if j < N-1:
            print(A[j], end=" ")
        else:
            print(A[j]) i range(0,N) range 0 N innum = A[i] innum A[i] A i j = i - 1 j i - 1 i 1 while j>=0 and innum < A[j]:
        A[j+1] = A[j]
        j = j -1
     j>=0 and innum < A[j] j>=0 j 0 innum < A[j] innum A[j] A j A[j+1] = A[j] A[j+1] A j+1 j 1 A[j] A j j = j -1 j j -1 j 1 A[j+1] = innum A[j+1] A j+1 j 1 innum for j in range(0,N):
        if j < N-1:
            print(A[j], end=" ")
        else:
            print(A[j]) j range(0,N) range 0 N if j < N-1:
            print(A[j], end=" ")
        else:
            print(A[j]) j < N-1 j N-1 N 1 print(A[j], end=" ") print A[j] A j end=" " end " " print(A[j]) print A[j] A j innum = A[i] A[i] innum N = int(input()) int(input()) N A = (input()).split() (input()).split() A j = i - 1 i - 1 j j = j -1 j -1 j
N = int(input())
A = (input()).split()
for i in range(0,N):
    A[i] = int(A[i])
for i in range(0,N):
    innum = A[i]
    j = i - 1
    while j>=0 and innum < A[j]:
        A[j+1] = A[j]
        j = j -1
    A[j+1] = innum
    for j in range(0,N):
        if j < N-1:
            print(A[j], end=" ")
        else:
            print(A[j])