#include <bits/stdc++.h>
using namespace std;
long long k, a, b, sum = 0;
int main() {
  scanf("%I64d%I64d%I64d", &k, &a, &b);
  long long c = std::abs(a) + 2;
  c = (c / k + 1) * k;
  cout << (b + c) / k - (a + c - 1) / k << endl;
  return 0;
}
