#include <bits/stdc++.h>
using namespace std;
int a, b, c;
int main() {
  cin >> a >> b >> c;
  int ret = 0;
  for (int i = a; i <= b; ++i) {
    if (i % c == 0) ret++;
  }
  cout << ret << endl;
  return 0;
}
