n, m, k = map(int, input())
ab = []
cd = []
for i in range(m):
    ab.append(list(map(int, input().split())))
for i in range(k):
    cd.append(list(map(int, input().split())))

9f1eae442c0283c90ee043dcad0345f805369102
<mask token>

<mask token>
for i in range(m):
    ab.append(list(map(int, input().split())))
for i in range(k):
    cd.append(list(map(int, input().split())))

n, m, k = map(int, input())
ab = []
cd = []
for i in range(m):
    ab.append(list(map(int, input().split())))
for i in range(k):
    cd.append(list(map(int, input().split())))
