#for x in "banana":
#    print(x)

#for i in "kriti":
#   print(i,end="")

#for i in range(18):
#    print(i,end=" ")

#for i in range(2,10):
#    print(i)

#for i in range(-5,10):
#    print(i,end="")

#for i in range(1,10,3):
 #   print(i)

#sum of first 5 nos
#sum = 0
#for i in range(6):
    #sum = sum + i
    #sum+=i
#print(sum)

#taking input from user
#sum = 0
#n = int(input())
#for i in range(n+1):
#    sum += i
#print(sum)

# while loop

#sum = 0
#n = int(input())
#i = 0
#while(i<=n):
#    sum += i
#    i += 1
#print(sum)

#find sum of cube of first five number
#sum = 0
#for i in range(1,6):
#    cube = i**3
#    sum += cube
#print(sum)

#find sum of square of first five nos
#sum = 0 
#i = 0
#while(i<=5):
#    sum += i**2
#    i += 1
#print(sum)

#break statement

#for i in range(1,10):
#    if(i==5):
#        break
#    print(i)

#i = 0
#while i <= 10:
#    if i == 6:
#       break
#    i += 1
#    print(i)
#print(i)

#continue statement
#for i in range(1,10):
#    if i==5 or i == 7:
#        continue
#    print(i)

#i = 0
#while(i<10):
#    i+=1
#    if(i==5):
#        continue
#    print(i)

# nested loop
for i in range(1,5):
    for j in range(1,5):
        print(i+j,end=" ")
    print("")

    



