#include using namespace std; typedef long long ll; int main(){ priority_queue,greater> pq2; priority_queue pq; int q,k;cin >> q >> k; while(q--){ int x;cin >> x; if(x==1){ ll v;cin >> v; if(pq.size()