N = int(input())
A = list(map(int,input().split()))
B = set()

for a in A:
    if a in B:
        print('NO')
        exit()
    else:
        B.add(a)
print('YES') N = int(input()) N int(input()) int input() input A = list(map(int,input().split())) A list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split B = set() B set() set for a in A:
    if a in B:
        print('NO')
        exit()
    else:
        B.add(a) a A if a in B:
        print('NO')
        exit()
    else:
        B.add(a) a in B a B print('NO') print 'NO' exit() exit B.add(a) B.add B add a print('YES') print 'YES' N = int(input()) int(input()) N A = list(map(int,input().split())) list(map(int,input().split())) A B = set() set() B
N = int(input())
A = list(map(int,input().split()))
B = set()

for a in A:
    if a in B:
        print('NO')
        exit()
    else:
        B.add(a)
print('YES')