#include <bits/stdc++.h>
using namespace std;
int main() {
  long long k, a, b;
  cin >> k >> a >> b;
  long long k1, k2, r1, r2;
  if (a >= 0) {
    k1 = a / k;
    r1 = a % k;
  } else {
    k1 = a / k;
    r1 = a % k;
    if (r1) {
      k1 -= 1;
      r1 += k;
    }
  }
  if (b >= 0) {
    k2 = b / k;
    r2 = b % k;
  } else {
    k2 = b / k;
    r2 = b % k;
    if (r2) {
      k2 -= 1;
      r2 += k;
    }
  }
  if (r1) {
    cout << (k2 - k1) << "\n";
    ;
  } else {
    cout << (k2 - k1 + 1) << "\n";
    ;
  }
}
