#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long k, a, b;
  cin >> k >> a >> b;
  if (a < 0 && b < 0) {
    cout << abs(a) / k - (abs(b) - 1) / k << endl;
  } else if (a > 0 && b > 0) {
    cout << b / k - (a - 1) / k << endl;
  } else if (b > 0 && a < 0) {
    cout << b / k + abs(a) / k + 1 << endl;
  } else if (b > 0 && a == 0) {
    cout << b / k + 1 << endl;
  } else if (b == 0 && a < 0) {
    cout << abs(a) / k + 1 << endl;
  } else {
    cout << 1 << endl;
  }
}
