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