#include <bits/stdc++.h>
using namespace std;
char ch[30];
int main(int argc, char** argv) {
  long long k, a, b;
  cin >> k >> a >> b;
  long long ans;
  if (a <= 0 && b >= 0) {
    ans = b / k + abs(a) / k + 1;
  } else {
    if (a > 0 && b > 0) {
      ans = b / k - a / k;
      if (a % k == 0) ans++;
    } else {
      ans = abs(a) / k - abs(b) / k;
      if (b % k == 0) ans++;
    }
  }
  cout << ans;
  return 0;
}
