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