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