#include <bits/stdc++.h>
using namespace std;
void doit() {
  long long k, l, r;
  cin >> k >> l >> r;
  long long rem = l % k;
  if (l < 0) {
    l += (-1 * rem);
  } else {
    if (rem) l += k - rem;
  }
  rem = r % k;
  if (r < 0) {
    if (rem) r += (-k) - rem;
  } else {
    if (rem) r -= rem;
  }
  if (r < l) {
    cout << 0 << "\n";
  } else {
    cout << (r - l) / k + 1 << "\n";
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long t = 1;
  for (long long i = 1; i <= t; i++) {
    doit();
  }
}
