n=int(input())
r=[int(x) for x in input().split()]
r=set(r)
for i in range(n):
    if (i+1) not in r:
        print(i+1,end=" ")
6851cf6e45b7a9d37c68a9ad99a6e7a405d23e88
<mask token>

<mask token>
for i in range(n):
    if i + 1 not in r:
        print(i + 1, end=' ')

n = int(input())
r = [int(x) for x in input().split()]
r = set(r)
for i in range(n):
    if i + 1 not in r:
        print(i + 1, end=' ')

n=int(input())
r=[int(x) for x in input().split()]
r=set(r)
for i in range(n):
    if (i+1) not in r:
        print(i+1,end=" ")