#include using namespace std; typedef long long ll; typedef pair P; #define REP(i,n) for(int i=0;i> n >> l >> r; vector a(n); for(i=0;i> a[i]; sort(a.begin(),a.end()); reverse(a.begin(),a.end()); ll mx=1; for(i=0;i=R && l<=L){ s++; } } mx=max(mx,s); } cout << mx << endl; return 0; }