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