#include<iostream>
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
        }
    cout<<i<<endl;
        
    }
    
    return 0;
}
    
