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