from collections import Counter n=int(input()) a=list(map(str,input().split())) b=list(map(str,input().split())) A=Counter(a) B=Counter(b) ans=(A-B).keys() print(*ans)