import numpy
n, m, p = map(int, input().split())
n_arr = [list(map(int, input().split())) for _ in range(n)]
m_arr = [list(map(int, input().split())) for _ in range(m)]
print(numpy.concatenate((n_arr, m_arr)))

6332b3e20341e2861079d7710581f856e893bcc8
<mask token>

<mask token>
print(numpy.concatenate((n_arr, m_arr)))

<mask token>
n, m, p = map(int, input().split())
n_arr = [list(map(int, input().split())) for _ in range(n)]
m_arr = [list(map(int, input().split())) for _ in range(m)]
print(numpy.concatenate((n_arr, m_arr)))

import numpy
n, m, p = map(int, input().split())
n_arr = [list(map(int, input().split())) for _ in range(n)]
m_arr = [list(map(int, input().split())) for _ in range(m)]
print(numpy.concatenate((n_arr, m_arr)))
