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