import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  
  val n = sc.nextInt
  val a = List.fill(n)(sc.nextInt)
  
  val res = if(a.length == a.distinct.length) "YES" else "NO"
  println(res)

}
