object Main extends App {
  val n = scala.io.StdIn.readInt()
  val aInput =  scala.io.StdIn.readLine()
  val lengthAfterDistinct = aInput.split(" ").toVector.distinct.length

  if (n == lengthAfterDistinct) {
    println("Yes")
  } else {
    println("No")
  }
}