from math import gcd



from math import factorial as f



from math import ceil, floor, sqrt

import math



import bisect

import re

import heapq



from copy import deepcopy

import itertools

from itertools import permutations



from sys import exit



ii = lambda: int(eval(input()))

mi = lambda: list(map(int, input().split()))

li = lambda: list(map(int, input().split()))



yes = "Yes"

no = "No"





def main():

    l, r, d = mi()

    cnt = 0

    tmp = d

    while tmp <= r:

        if tmp <= r and tmp >= l:

            cnt += 1

        tmp += d

    print(cnt)





main()

l, r, d = list(map(int, input().split()))



cnt = 0

tmp = d

while tmp <= r:

    if tmp <= r and tmp >= l:

        cnt += 1

    tmp += d

print(cnt)
from math import gcd
from math import factorial as f
from math import ceil, floor, sqrt
import math
import bisect
import re
import heapq
from copy import deepcopy
import itertools
from itertools import permutations
from sys import exit

ii = lambda: int(eval(input()))
mi = lambda: list(map(int, input().split()))
li = lambda: list(map(int, input().split()))
yes = "Yes"
no = "No"


def main():
    l, r, d = mi()
    cnt = 0
    tmp = d
    while tmp <= r:
        if tmp <= r and tmp >= l:
            cnt += 1
        tmp += d
    print(cnt)


main()

l, r, d = list(map(int, input().split()))
cnt = 0
tmp = d
while tmp <= r:
    if tmp <= r and tmp >= l:
        cnt += 1
    tmp += d
print(cnt)

-from math import gcd -from math import factorial as f -from math import ceil, floor, sqrt -import math -import bisect -import re -import heapq -from copy import deepcopy -import itertools -from itertools import permutations -from sys import exit - -ii = lambda: int(eval(input())) -mi = lambda: list(map(int, input().split())) -li = lambda: list(map(int, input().split())) -yes = "Yes" -no = "No" - - -def main(): -    l, r, d = mi() -    cnt = 0 -    tmp = d -    while tmp <= r: -        if tmp <= r and tmp >= l: -            cnt += 1 -        tmp += d -    print(cnt) - - -main() +l, r, d = list(map(int, input().split())) +cnt = 0 +tmp = d +while tmp <= r: +    if tmp <= r and tmp >= l: +        cnt += 1 +    tmp += d +print(cnt)