#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int k, a, b, c, d;
  cin >> k >> a >> b;
  d = a / k;
  c = b / k;
  if (a >= 0 && b >= 0 && k > 0) {
    if (k > b) {
      if (a == 0 || b == 0) {
        cout << "1" << endl;
        return 0;
      } else {
        cout << "0" << endl;
        return 0;
      }
    }
  }
  if (a < 0 && b < 0) {
    if (k > b * (-1)) {
      cout << "0" << endl;
      return 0;
    }
  }
  if (a == b) {
    if (a % k == 0)
      cout << "1" << endl;
    else
      cout << "0" << endl;
    return 0;
  } else if (a < 0 && b >= 0) {
    d = d * (-1);
    cout << c + d + 1 << endl;
    return 0;
  } else if (a && b) {
    if (a % k == 0) {
      if (c - d == 0) {
        cout << "1" << endl;
        return 0;
      } else {
        if (a > 0 && b > 0) {
          cout << c - d + 1 << endl;
          return 0;
        } else {
          if (b % k == 0)
            cout << c - d + 1 << endl;
          else
            cout << c - d << endl;
          return 0;
        }
      }
    } else {
      if (c - d == 0) {
        cout << "1" << endl;
        return 0;
      } else {
        if (b % k == 0) {
          if (a > 0 && b > 0) {
            cout << c - d << endl;
            return 0;
          } else {
            cout << c - d + 1 << endl;
            return 0;
          }
        } else {
          cout << c - d << endl;
          return 0;
        }
      }
    }
  } else if (a == 0) {
    cout << c + 1 << endl;
    return 0;
  } else if (b == 0) {
    d = d * (-1);
    cout << d + 1 << endl;
    return 0;
  } else
    ;
  return 0;
}
