from collections import Counter n = int(input()) A = list(input().split()) B = list(input().split()) a = Counter(A) b = Counter(B) for i,j in b.items(): if a[i] != j: print(i)