#include <bits/stdc++.h>
const int MAX_N = (int)1e5 + 123;
const double eps = 1e-6;
const int inf = (int)1e9 + 123;
using namespace std;
long long k;
long long solve(long long a) { return a / k + 1; }
int main() {
  long long a, b;
  cin >> k >> a >> b;
  long long ans = 0;
  if (a <= 0 && b >= 0)
    ans = solve(-a) + solve(b) - 1;
  else {
    a = abs(a), b = abs(b);
    if (a > b) swap(a, b);
    ans = solve(abs(b)) - solve(abs(a) - 1);
  }
  cout << ans;
  return 0;
}
