import scala.io.StdIn._

object Main  {
  def main(args: Array[String]): Unit = {
    val _ = readLine
    println(solve(readLine.split(" ").map(_.toInt)))
  }

  def solve(nums: Array[Int]): Boolean = {
    nums.length == nums.toSet.size
  }
}