#include <bits/stdc++.h>
using namespace std;
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  cerr << name << " : " << arg1 << std::endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cerr.write(names, comma - names) << " : " << arg1 << " | ";
  __f(comma + 1, args...);
}
int main() {
  long long a, b, k;
  cin >> k >> a >> b;
  if (a <= 0 and b >= 0) {
    cout << b / k + 1 - a / k << endl;
    return 0;
  }
  if (b < 0) {
    a = -a;
    b = -b;
    swap(a, b);
  }
  a--;
  cout << b / k - a / k << endl;
  return 0;
  return 0;
}
