func main() {
    let n = Int(readLine()!)!
    
    var counter = 0
    for a in 1..<n {
        for b in 1... {
            if a * b < n {
                counter += 1
            } else {
                break
            }
        }
    }
    print(counter)
}

main()
