import java.util.Scanner

fun main(args: Array<String>) {
	val scn = Scanner(System.`in`)
	val n = scn.nextInt()
	val s = mutableSetOf<Int>()
	repeat(n){s.add(scn.nextInt())}
	print(if (n==s.size) "YES" else "NO")
}