#include <stdio.h>
using namespace std;

int main()
{
    unsigned long a,b,x;
    int count=0;
   scanf("%lu %lu %lu",&a,&b,&x);
    for(;a<=b;++a)
        if(a%x==0)
         count++;
    printf("%d",count);
    return 0;

}
