function Main(input){
    const num = input.split(' ').map(Number);
    let count = 0;
    for(let i=num[0]; i<=num[1]; i++){
        if(i % num[2] == 0) count++;
    }
    console.log(count);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
