#include <bits/stdc++.h>
using namespace std;
template <typename T>
using V = vector<T>;
const long long mod = 1000000007;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  long long k, a, b;
  cin >> k >> a >> b;
  if ((a >= 0) == (b >= 0)) {
    b = abs(b);
    a = abs(a);
    if (a > b) swap(a, b);
    cout << b / k - (a == 0 ? -k : a - 1) / k << endl;
  } else {
    b = abs(b);
    a = abs(a);
    if (a > b) swap(a, b);
    cout << b / k + (a) / k + 1 << endl;
  }
  return 0;
}
