#include <bits/stdc++.h>
using namespace std;
int main() {
  long long k, a, b;
  long long x, y;
  cin >> k >> a >> b;
  long long ans = 0;
  ;
  if (a <= 0 && b >= 0) {
    ans++;
  }
  if (a > 0 && b > 0) {
    x = (a - 1) / k;
    y = b / k;
    ans = ans + y - x;
    cout << ans << endl;
    return 0;
  }
  if (a < 0 && b < 0) {
    a = a * -1;
    b = b * -1;
    x = (b - 1) / k;
    y = a / k;
    ans = ans + y - x;
    cout << ans << endl;
    return 0;
  }
  if (a <= 0 && b >= 0) {
    a = a * -1;
    x = a / k;
    y = b / k;
    ans = ans + x + y;
    cout << ans << endl;
    return 0;
  }
}
