#include <bits/stdc++.h>   bool comp(const int& a, const int& b) { return a < b ? false : true; }   using namespace std;   int main() {     long long int k, a, b, m, n;     cin >> k >> m >> n;     a = max(m, n);     b = min(m, n);     long long int ans = 0;     if (a > 0 && b > 0) {       ans = a / k - (b - 1) / k;     } else if (a < 0 && b < 0) {       ans = abs(b) / k - (abs(a) - 1) / k;     } else {       ans = abs(a) / k;       ans += (abs(b)) / k;       ans += 1;     }     cout << ans;     return 0;   }   