N = int(input()) A = input().split() B = input().split() A.sort() B.sort() B.append("") for a, b in zip(A, B): if a!=b: print(a) exit()