#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y, z, count = 0;
  cin >> x >> y >> z;
  for (; x <= y; x++) {
    if (x % z == 0) {
      count++;
    }
  }
  cout << count << endl;
  return 0;
}
