n = gets.chomp.to_i
kazu = 0
ahigh = n
bhigh = n
for a in 1..ahigh do
    for b in 1..bhigh do
        if a * b < n then
            kazu = kazu + 1
        end
        bhigh = n / a
    end
end
puts kazu