#include <bits/stdc++.h>
using namespace std;
long long how_many(long long b, long long n) {
  long long diff = b + 1;
  long long ans = diff % n;
  if (ans == 0) {
    return diff / n;
  } else {
    return diff / n + 1;
  }
}
long long how_many2(long long a, long long n) {
  long long diff = 0 - a;
  return diff / n;
}
long long how_many3(long long a, long long b, long long n) {
  long long cnt = 0;
  long long diff = b - a + 1;
  long long ans = diff % n;
  if (ans == 0) {
    cnt = (diff / n);
  } else {
    cnt = (diff / n + 1);
  }
  if (a % n != 0 && b % n != 0 && ans != 0) {
    cnt--;
  }
  return cnt;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, a, b;
  long long cnt;
  cin >> n >> a >> b;
  if (a < 0 && b >= 0) {
    cnt = how_many(b, n);
    cnt += how_many2(a, n);
  } else if (a < 0 && b < 0) {
    if (a == b) {
      if (a % n == 0) {
        cnt = 1;
      } else {
        cnt = 0;
      }
    } else {
      long long temp = b;
      b = -a;
      a = -temp;
      cnt = how_many3(a, b, n);
    }
  } else {
    cnt = how_many3(a, b, n);
  }
  cout << abs(cnt) << endl;
  return 0;
}
