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