#include using namespace std; int main() { string S; int t=0,r=0,e=0,count=0; cin>>S; for(int i=0;i0 && r>0 && e>1){ count++; t--; r--; e-=2; } cout<