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