
import Foundation

let input = readLine()!.components(separatedBy: " ").map{ Int($0)! }
let L = input[0]
let R = input[1]
let d = input[2]
var count = 0

for i in L...R {
    if i % d == 0{
        count += 1
    }
}

print(count)