#include <bits/stdc++.h>
using namespace std;
int main() {
  long long k, a, b, divisori, x, y;
  cin >> k >> a >> b;
  if ((a >= 0) && (b >= 0)) {
    x = a;
    y = b;
    divisori = y / k - x / k;
    if (x % k == 0) divisori++;
  } else if ((a < 0) && (b <= 0)) {
    x = -b;
    y = -a;
    divisori = y / k - x / k;
    if (x % k == 0) divisori++;
  } else {
    x = 0;
    y = b;
    divisori = y / k - x / k;
    x = 0;
    y = -a;
    divisori += y / k - x / k + 1;
  }
  cout << divisori;
  return 0;
}
