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