_,s=open(c:=0)

for a in sorted(map(int,s.split())):c=a-c

print(c)
for a in sorted(map(int,[*open(c:=0)][1].split())):c=a-c

print(c)
_, s = open(c := 0)
for a in sorted(map(int, s.split())):
    c = a - c
print(c)

for a in sorted(map(int, [*open(c := 0)][1].split())):
    c = a - c
print(c)

-_, s = open(c := 0) -for a in sorted(map(int, s.split())): +for a in sorted(map(int, [*open(c := 0)][1].split())):