import collections N = int(input()) A = list(input().split()) B = list(input().split()) CA = collections.Counter(A) CB = collections.Counter(B) print(*(CA-CB).keys())