#include<cstdio>
#include<cmath>
#include<cstring>
#include<algorithm>
#define LL long long
using namespace std;
int main(){
LL k,a,b;
while(scanf("%lld%lld%lld",&k,&a,&b)!=EOF){
LL ans;
if(a>0&&b>0){
ans=b/k-(a-1)/k;
// printf("---\n");
}
else if(a<0&&b<0){
ans=abs(a)/k-abs(b+1)/k;
}
else{
ans=b/k+abs(a)/k+1;
}
printf("%lld\n",ans);
}
return 0;
}