#include <iostream>
using namespace std;
int main()
{
char strOperation[10]={0};
int num;
int count=0;
while(cin>>strOperation)
{
if(strcmp(strOperation,"binding")==0)
{
cin>>num;
count=count+num;
}
else if (strcmp(strOperation,"remove")==0)
{
cin>>num;
count=count-num;
}
else
break;
}
if (num<0)
{
cout<<"current"<<" "<<0<<endl;
}
else
cout<<"current"<<" "<<num<<endl;
return 0;
}
using namespace std;
int main()
{
char strOperation[10]={0};
int num;
int count=0;
while(cin>>strOperation)
{
if(strcmp(strOperation,"binding")==0)
{
cin>>num;
count=count+num;
}
else if (strcmp(strOperation,"remove")==0)
{
cin>>num;
count=count-num;
}
else
break;
}
if (num<0)
{
cout<<"current"<<" "<<0<<endl;
}
else
cout<<"current"<<" "<<num<<endl;
return 0;
}