#include <iostream>

using namespace std;

int main()
{
    long long  a,b,x;
    int N=0;

    cout<<"enter the first number"<<"\n";
    cin>>a;
    cout<<"enter the second number"<<"\n";
    cin>>b;
    if(b>=a){
        cout<<"enter the third number"<<"\n";
        cin>>x;}
        else
        cout<<"wrong number";

    for(long long i=x;i<=b;i++){
    if(i%x==0)
     N=N+1;}

cout<<"the number is "<<N;


    return 0;
}
