    fun main(args: Array<String>) {
        val input = read()
        println(kagamiMochi(input))
    }

    data class Inputs(val count: Int, val diameters: List<Int>)

    fun read(): Inputs {
        val count = Integer.parseInt(readLine()!!)
        val diameters = mutableListOf<Int>()
        (1..count).forEach { diameters.add(Integer.parseInt(readLine()!!)) }
        return Inputs(count, diameters)
    }

    fun kagamiMochi(inputs: Inputs): Int {
        val sorted = inputs.diameters.toSortedSet()

        return sorted.size
    }