import sys

read = sys.stdin.read

from itertools import accumulate

def main():

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

    res = 0

    for i1 in range(l, r + 1):

        res += i1 % d == 0



    print(res)





if __name__ == '__main__':

    main()
def main():

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

    res = r // d - (l-1) // d

    print(res)



if __name__ == '__main__':

    main()

import sys

read = sys.stdin.read
from itertools import accumulate


def main():
    l, r, d = list(map(int, input().split()))
    res = 0
    for i1 in range(l, r + 1):
        res += i1 % d == 0
    print(res)


if __name__ == "__main__":
    main()

def main():
    l, r, d = list(map(int, input().split()))
    res = r // d - (l - 1) // d
    print(res)


if __name__ == "__main__":
    main()

-import sys - -read = sys.stdin.read -from itertools import accumulate - - -    res = 0 -    for i1 in range(l, r + 1): -        res += i1 % d == 0 +    res = r // d - (l - 1) // d