#include<bits/stdc++.h> using namespace std; int main(){ int k,x,y; cin>>k>>x>>y; cout<<y/k-(x-3)%k; return 0; }