# https://www.hackerrank.com/challenges/np-concatenate/problem

import numpy
N, M, P = map(int, input().split())
nArray = []
mArray = []
for i in range(N):
    temp = list(map(int, input().split()))
    nArray.append(temp)
for i in range(M):
    temp = list(map(int, input().split()))
    mArray.append(temp)
print( numpy.concatenate( (nArray, mArray), axis = 0 ) )
f07d0d8c4c1237479d7893f140624992ede38bab
<mask token>

<mask token>
for i in range(N):
    temp = list(map(int, input().split()))
    nArray.append(temp)
for i in range(M):
    temp = list(map(int, input().split()))
    mArray.append(temp)
print(numpy.concatenate((nArray, mArray), axis=0))

<mask token>
N, M, P = map(int, input().split())
nArray = []
mArray = []
for i in range(N):
    temp = list(map(int, input().split()))
    nArray.append(temp)
for i in range(M):
    temp = list(map(int, input().split()))
    mArray.append(temp)
print(numpy.concatenate((nArray, mArray), axis=0))

import numpy
N, M, P = map(int, input().split())
nArray = []
mArray = []
for i in range(N):
    temp = list(map(int, input().split()))
    nArray.append(temp)
for i in range(M):
    temp = list(map(int, input().split()))
    mArray.append(temp)
print(numpy.concatenate((nArray, mArray), axis=0))

# https://www.hackerrank.com/challenges/np-concatenate/problem

import numpy
N, M, P = map(int, input().split())
nArray = []
mArray = []
for i in range(N):
    temp = list(map(int, input().split()))
    nArray.append(temp)
for i in range(M):
    temp = list(map(int, input().split()))
    mArray.append(temp)
print( numpy.concatenate( (nArray, mArray), axis = 0 ) )