m, ml, n, nl = int(input()), set(map(int, input().split())), int(input()), set(
    map(int, input().split()))
c = nl.difference(ml)
d = ml.difference(nl)
c.update(d)
for i in sorted(c):
    print(i)

a441c4c55a98581ec6a313cd89c919f8a3f6a13b
<mask token>

<mask token>
c.update(d)
for i in sorted(c):
    print(i)

m, ml, n, nl = int(input()), set(map(int, input().split())), int(input()), set(
    map(int, input().split()))
c = nl.difference(ml)
d = ml.difference(nl)
c.update(d)
for i in sorted(c):
    print(i)
