from collections import defaultdict N=int(input()) A=input().split() B=input().split() D=defaultdict(int) E=defaultdict(int) for a in A: D[a]+=1 for b in B: E[b]+=1 for a in D: if D[a]!=E[a]: print(a)