a=int(input())
b=list(map(int,input().split()))
b.sort()
c=0
for i in range(a-1):
  if b[i]==b[i+1]:
    c=c+1
if c==0:
  print("YES")
else:
  print("NO") a=int(input()) a int(input()) int input() input b=list(map(int,input().split())) b list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split b.sort() b.sort b sort c=0 c 0 for i in range(a-1):
  if b[i]==b[i+1]:
    c=c+1 i range(a-1) range a-1 a 1 if b[i]==b[i+1]:
    c=c+1 b[i]==b[i+1] b[i] b i b[i+1] b i+1 i 1 c=c+1 c c+1 c 1 if c==0:
  print("YES")
else:
  print("NO") c==0 c 0 print("YES") print "YES" print("NO") print "NO" c=0 0 c c=c+1 c+1 c a=int(input()) int(input()) a b=list(map(int,input().split())) list(map(int,input().split())) b
a=int(input())
b=list(map(int,input().split()))
b.sort()
c=0
for i in range(a-1):
  if b[i]==b[i+1]:
    c=c+1
if c==0:
  print("YES")
else:
  print("NO")