#include<iostream>
#include<algorithm>
using namespace std;
void work(string str,int score){
int a=0,b=0,i;
for(i=0;i<str.size()&&str[i]!='E';i++){
if(str[i]=='W')a++;
else b++;
if(max(a,b)>=score&&abs(a-b)>=2){
printf("%d:%d\n",a,b);
a= b=0;
}
}
printf("%d:%d\n",a,b);
}
int main()
{
string str,s;
while(cin>>s)str+=s;
work(str,11);
printf("\n");
work(str, 21);
return 0;
}