local n = io.read("*n")
local d = {}
for i = 1, n do
    local num = io.read("*n")
    if d[num] == nil then
        d[num] = true
    end
end

local count = 0
for key, value in pairs(d) do
    count = count + 1
end
print(count)