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