#include <bits/stdc++.h>
int main(void) {
  int a, b, c, x, y;
  for (int x = a; x <= b; x++) {
    scanf("%d %d %d", &a, &b, &c);
    if (x % c == 0) {
      y = 0;
      y = y + 1;
      y++;
    }
    printf("%d", y);
  }
  return (0);
}
