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