#include <bits/stdc++.h>
using namespace std;
int main(int argc, char** argv) {
  long long n, a, b;
  long long res = 0;
  while (!cin.fail()) {
    cin >> n >> a >> b;
    if (!cin.fail()) {
      if (a <= 0 && b <= 0) {
        long long temp = a;
        a = b;
        b = temp;
        a = -a;
        b = -b;
      }
      if (a <= 0 && b >= 0) {
        res = b / n - a / n + 1;
      } else {
        res = b / n - (a - 1) / n;
      }
      cout << res << endl;
    }
  }
  return 0;
}
