# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# +
na = int(input())
a = set(map(int, input().split()))
nb = int(input())
b = set(map(int, input().split()))

amb = a.difference(b)
bma = b.difference(a)
sd = sorted(list(amb.union(bma)))
for i in sd:
    print(i)
# -



StarcoderdataJupyterScriptsDedupFiltered