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