#include using namespace std; using Int = long long; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a vector make_v(size_t a){return vector(a);} template auto make_v(size_t a,Ts... ts){ return vector(ts...))>(a,make_v(ts...)); } template typename enable_if::value==0>::type fill_v(T &t,const V &v){t=v;} template typename enable_if::value!=0>::type fill_v(T &t,const V &v){ for(auto &e:t) fill_v(e,v); } //INSERT ABOVE HERE signed main(){ Int n,c; cin>>n>>c; vector l(n),w(n); for(Int i=0;i>l[i]; for(Int i=0;i>w[i]; const Int INF = 1e15; auto dp=make_v(55,55,55,55); fill_v(dp,-INF); for(Int i=0;ic) return 1; if(a>b&&b