# for i in range(5):
# 	l1=int(input('enter list1'))
# 	for j in range(5):
# 		l2=int(input('enter list2'))
l11=[]
l12=[]
n=int(input('enter no of rows:'))
m=int(input('no of columns:'))
for i in range(n):
	for j in range(m):
		l1=int(input('enter values:'))
		l11.append(l1)
		print(l11)

	#l11=input('enter values: ')
	#for j in range(m):
		#ll2=input('enter values:')
		#print(l11.append(l12))
	