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