int main(){
        //ifstream in("input.txt");
        short commds;
        BandwidthManager bm;
        int commands;
        string command;
        ios_base::sync_with_stdio(false);
        cin>>commands;
        while (commands--)
        {
                string command,load;
                cin>>command;
                if(command == "rcv"){
                        cin>>command>>load;
                        bm.rcv(command,load);
                }
                else if(command == "send"){