#include <bits/stdc++.h>
using namespace std;
inline void use_io_optimizations() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
}
int main(void) {
  use_io_optimizations();
  unsigned long long divisor;
  long long lower;
  long long upper;
  cin >> divisor >> lower >> upper;
  if (lower >= 0) {
    cout << upper / divisor - lower / divisor + !(lower % divisor) << '\n';
  } else if (upper >= 0) {
    cout << upper / divisor + 1 + abs(lower) / divisor << '\n';
  } else {
    cout << abs(lower) / divisor - abs(upper) / divisor +
                !(abs(upper) % divisor)
         << '\n';
  }
  return 0;
}
