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