#首行输入数n,接下来输入n行数,以空格隔开
n = int(raw_input())
# print n
L = []
for i in range(n):
L.append([int(x) for x in raw_input().split(' ')])
print L
#首行输入数n,接下来输入n行数,以空格隔开
n = int(raw_input())
# print n
L = []
for i in range(n):
L.append([int(x) for x in raw_input().split(' ')])
print L