n=int(input())
a=[int(x) for x in input().split()]


ans={}
flag=0
for i in a:
  if i not in ans:
    ans[i]=1
  else:
    flag=1
    break

if flag==1:
  print("NO")
else:
  print("YES") n=int(input()) n int(input()) int input() input int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x a=[int(x) for x in input().split()] a [int(x) for x in input().split()] ans={} ans {} flag=0 flag 0 for i in a:
  if i not in ans:
    ans[i]=1
  else:
    flag=1
    break i a if i not in ans:
    ans[i]=1
  else:
    flag=1
    break i not in ans i ans ans[i]=1 ans[i] ans i 1 flag=1 flag 1 break if flag==1:
  print("NO")
else:
  print("YES") flag==1 flag 1 print("NO") print "NO" print("YES") print "YES" ans={} {} ans flag=1 1 flag a=[int(x) for x in input().split()] [int(x) for x in input().split()] a flag=0 0 flag n=int(input()) int(input()) n
n=int(input())
a=[int(x) for x in input().split()]


ans={}
flag=0
for i in a:
  if i not in ans:
    ans[i]=1
  else:
    flag=1
    break

if flag==1:
  print("NO")
else:
  print("YES")