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