import Foundation

func readInt() -> Int {
    return Int(readLine()!)!
}

func readInts() -> [Int] {
    return readLine()!.split(separator: " ").map { Int($0)! }
}

// ABC179C
let n = readInt()
var count = 0
for c in 1..<n {
    let ab = n - c
    var yakusuCount = 0
    if ab == 0 { continue }
    for a in 1...ab {
        if ab % a == 0 {
            yakusuCount += 1
        }
    }
    count += yakusuCount
}
print(count)
