from collections import Counter n = int(input()) A = list(input().split()) B = list(input().split()) a = Counter(A) b = Counter(B) for i,j in a.items(): if b[i] == j-1: print(i)