from collections import Counter n=int(input()) l_a=input().split() l_b=input().split() nl_a=Counter(l_a) nl_b=Counter(l_b) for i,j in nl_a.items(): if nl_b[i]==j:continue else:print(i)