#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long int llint; typedef long double lldo; #define mp make_pair #define mt make_tuple #define pub push_back #define puf push_front #define pob pop_back #define pof pop_front #define fir first #define sec second #define res resize #define ins insert #define era erase //cout<void mineq(T& a,U b){if(a>b){a=b;}} template void maxeq(T& a,U b){if(a void SO(T& ve){sort(ve.begin(),ve.end());} template void REV(T& ve){reverse(ve.begin(),ve.end());} int LBI(vector&ar,lldo in){return lower_bound(ar.begin(),ar.end(),in)-ar.begin();} int UBI(vector&ar,lldo in){return upper_bound(ar.begin(),ar.end(),in)-ar.begin();} int main(void){ int n,Lb,Rb,i;cin>>n>>Lb>>Rb; vector>teki(n); for(i=0;i>q>>w>>e>>r; teki[i]=mt(r,q,e); } vectorhit(n); for(int x=Lb;x<=Rb;x++){ for(i=0;i