#include <bits/stdc++.h>
using namespace std;
long long l, r, total, mods, modl, modr;
int main() {
  scanf("%lld %lld %lld", &mods, &l, &r);
  if ((l - 1) % mods != 0) {
    if (l <= 0)
      modl = (l - 1) / mods - 1;
    else
      modl = (l - 1) / mods;
  } else if ((l - 1) % mods == 0) {
    modl = (l - 1) / mods;
  }
  if (r % mods != 0) {
    if (r <= 0)
      modr = r / mods - 1;
    else
      modr = r / mods;
  } else if (r % mods == 0) {
    modr = r / mods;
  }
  total = modr - modl;
  printf("%lld\n", total);
}
