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