import Foundation
let N = Int(readLine()!)!
var arr = [Int]()
for i in 0 ..< N {
    arr.append(Int(readLine()!)!)
}
var sorArr = arr.sorted()
var orderArr = NSOrderedSet(array: sorArr)
print(orderArr.count)