N = int(input())
A = list(map(int,input().split()))
dic = {}
for a in A:
    if a not in dic:
        dic[a]=1
    else:
        print('NO');exit()
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 dic = {} dic {} for a in A:
    if a not in dic:
        dic[a]=1
    else:
        print('NO');exit() a A if a not in dic:
        dic[a]=1
    else:
        print('NO');exit() a not in dic a dic dic[a]=1 dic[a] dic a 1 print('NO') print 'NO' exit() exit print('YES') print 'YES' N = int(input()) int(input()) N dic = {} {} dic A = list(map(int,input().split())) list(map(int,input().split())) A
N = int(input())
A = list(map(int,input().split()))
dic = {}
for a in A:
    if a not in dic:
        dic[a]=1
    else:
        print('NO');exit()
print('YES')