from collections import Counter N=int(input()) A=Counter(input().split()) B=Counter(input().split()) for a in A: if A[a]>B[a]: print(a)