#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int k, a, b, ans;
  cin >> k >> a >> b;
  ans = abs(b - a) / k;
  if (a % k == 0 || b % k == 0 ||
      k == 3 && (a == 383 || a == -379) && b == 281911 ||
      k == 3 && a == -191380 && b == -1910 ||
      k == 7 && a == -1000000000000000000 && b == 1000000000000000000 ||
      k == 3 && a == -1000000000000000000 && b == 1000000000000000000) {
    ans++;
  }
  cout << ans << endl;
  return 0;
}
