n = int(input()) d = {} for a in input().split(): if a not in d: d[a] = 1 else: d[a] += 1 for b in input().split(): d[b] -= 1 for key,val in d.items(): if val > 0: print(key)