#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 7;
const int oo = 1e9 + 7;
long long n, a, b;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cin >> n >> a >> b;
  long long tmp = a;
  tmp /= n;
  tmp *= n;
  if (tmp < a)
    a = tmp + n;
  else
    a = tmp;
  tmp = b;
  tmp /= n;
  tmp *= n;
  if (tmp > b)
    b = tmp - n;
  else
    b = tmp;
  cout << ((b - a) / n) + 1 << "\n";
  return 0;
}
