#include <bits/stdc++.h>
using namespace std;
int main() {
  long long k, a, b;
  cin >> k >> a >> b;
  if (a < 0) {
    if (b <= 0) {
      a = -a;
      b = -b;
      swap(a, b);
    } else {
      cout << ((long long)(abs(a) / k) + (long long)(b / k)) + 1;
      return 0;
    }
  }
  if (a == 0) {
    cout << (long)(b / k) + 1;
    return 0;
  }
  long long l = 0;
  if (a % k == 0) l = 1;
  cout << (long long)(b / k) - (long long)(a / k) + l;
}
