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