func main() {
    var ints = [Int]()
    let _ = readLine()
    while true {
        guard let s = readLine() else {
            break
        }
        ints.append(Int(s)!)
    }
    print("\(Set(ints).count)")
}

main()
