N = int(input()) A = input().split() B = input().split() A.sort() B.sort() for i in range(N): if i == N-1: print(A[N-1]) elif A[i] != B[i]: print(A[i]) break