#include <bits/stdc++.h>
using namespace std;
inline long long calc(long long x, long long k) {
  if (x < 0) return 0LL;
  return x / k + 1LL;
}
int main() {
  long long k, a, b;
  scanf("%lld%lld%lld", &k, &a, &b);
  if (a <= 0 && b <= 0) {
    a = abs(a), b = abs(b);
    printf("%lld\n", calc(a, k) - calc(b - 1LL, k));
  } else if (a >= 0 && b >= 0) {
    printf("%lld\n", calc(b, k) - calc(a - 1LL, k));
  } else {
    a = abs(a);
    printf("%lld\n", calc(b, k) + calc(a, k) - 1LL);
  }
  return 0;
}
