#include <bits/stdc++.h>
using namespace std;
long long ans, t, s, a, i, b, k;
int main() {
  cin >> k >> a >> b;
  s = (0 - a) / k + 1;
  while (a <= 0) {
    a = a + s * k;
    b = s * k + b;
  }
  ans = b / k - (a - 1) / k;
  cout << ans;
}
