from collections import Counter n=int(input()) f=lambda:input().split() a=f() b=f() ca=Counter(a) cb=Counter(b) print(*list(ca-cb))