#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int k, a, b;
  scanf("%I64d %I64d %I64d", &k, &a, &b);
  long long int result = 0;
  if (a == 0 && b == 0) {
    printf("1");
    return 0;
  }
  if (a < 0 && b <= 0) {
    a *= -1;
    b *= -1;
    swap(a, b);
    if (a == 0) {
      result += (b / k) + 1;
      printf("%I64d", result);
      return 0;
    }
    long long int t1 = (a - 1) / k;
    long long int t2 = (b) / k;
    result += (t2 - t1);
  } else if (a < 0) {
    a *= -1;
    long long int t1 = (a) / k;
    long long int t2 = (b) / k;
    result += (t2 + t1 + 1);
  } else {
    if (a == 0) {
      result += (b / k) + 1;
      printf("%I64d", result);
      return 0;
    }
    long long int t1 = (a - 1) / k;
    long long int t2 = (b) / k;
    result += (t2 - t1);
  }
  printf("%I64d", result);
  return 0;
}
