n = int(input()) a = input().split() b = input().split() for i in a: if not i in b: print(i) for i in b: if not i in a: print(i)