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