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