N = int(input()) ss = [set(),set()] for _ in "*"*N: for e,f in zip(ss,input().split()): e.add(f) for e in ss[1] - ss[0]: print(e)