ll Q,K,V;multiset a;multiset b; {rd(Q,K);for(;Q--;){rd(V);if(V<2){rd(V);a.insert(-V);auto i=a.begin();a.size()