#include #include using namespace std; int main(int argc, char* argv[]) { string S; cin>>S; int i; int sLen=S.length(); int maxLen=0; int ANum=0; int BNum=0; for (i=0;i