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