from collections import * N = int(input()) A = Counter(list(input().split())) B = Counter(list(input().split())) for k, v in A.items(): if v != B[k]: print(k)