#include <bits/stdc++.h>
int main() {
  long long k, a, b;
  while (scanf("%lld%lld%lld", &k, &a, &b) != EOF) {
    long long ans = 0;
    if (b < 0) {
      long long m = a;
      a = -b;
      b = -m;
      ans = b / k - (a - 1) / k;
    } else if (a <= 0 && b >= 0) {
      a = -a;
      ans = a / k + b / k + 1;
    } else if (a > 0) {
      ans = b / k - (a - 1) / k;
    }
    printf("%lld\n", ans);
  }
}
