n=int(input())
a=[int(x) for x in input().split()]
b=set(a)
l=len(b)
if l==n:
  print("YES")
else:
  print("NO") 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()] b=set(a) b set(a) set a l=len(b) l len(b) len b if l==n:
  print("YES")
else:
  print("NO") l==n l n print("YES") print "YES" print("NO") print "NO" l=len(b) len(b) l n=int(input()) int(input()) n a=[int(x) for x in input().split()] [int(x) for x in input().split()] a b=set(a) set(a) b
n=int(input())
a=[int(x) for x in input().split()]
b=set(a)
l=len(b)
if l==n:
  print("YES")
else:
  print("NO")