#include <bits/stdc++.h>
using namespace std;
const int maxN = 1e5 + 100;
const int mod = 1e9 + 7;
const int inf = 1e9;
long long k, a, b;
int main() {
  ios::sync_with_stdio(false);
  cin >> k >> a >> b;
  if (a == 0 || b == 0) {
    long long tmp = abs(a) + abs(b);
    cout << (tmp / k) + 1;
    return 0;
  }
  if (a == 0 && b == 0) {
    cout << "1";
    return 0;
  }
  if (a > 0 && b > 0) {
    cout << b / k - (a - 1) / k;
  } else {
    if (b < 0) {
      cout << abs(a) / k - (abs(b) - 1) / k;
    } else {
      cout << abs(a) / k + abs(b) / k + 1;
    }
  }
  return 0;
}
