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