#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using lint = long long int; long long int INF = 1001001001001001LL; int inf = 1000000007; long long int MOD = 1000000007LL; double PI = 3.1415926535897932; templateinline void chmin(T1 &a,const T2 &b){if(a>b) a=b;} templateinline void chmax(T1 &a,const T2 &b){if(a> l >> r; if (l == 0) { cout << 0 << endl; return 0; } lint ans = 0; for (int x = l; x < r; x++) { if (2 * x <= r) continue; ans += 1; } cout << ans << endl; return 0; }