#include <bits/stdc++.h>
int main() {
  long long a, b, i, j, k, count = 0, x, y, z, p, q;
  scanf("%lld %lld %lld", &k, &a, &b);
  x = a % k;
  if (x <= 0)
    a = a - x;
  else {
    x = k - x;
    a = a + x;
  }
  y = b % k;
  if (y < 0) {
    y = k + y;
    b = b - y;
  } else
    b = b - y;
  p = b - a;
  count = p / k;
  printf("%lld\n", count + 1);
  return 0;
}
