n = int(input()) a = input().split() b = input().split() if set(a) == set(b): print(*set(a)) else: print(*(set(a) - set(b)))