#include<iostream>
#include<string>
#include<math.h>
using namespace std;
int main()
{
string s;
char c;
int i=0;
while(true)
{
cin>>c;
if(c=='E')
break;
if(c!='\n')
s+=c;
}//读取字符串
if(s[i]=='\0')
cout<<"0:0"<<"\n\n"<<"0:0";//第一个字符为E的情况
while(s[i]!='\0')
{
int W=0,L=0;
for(int j=0;j<11&&s[i]!='\0';j++)
{
if(s[i++]=='W')
W++;
else
L++;
if(j==10&&abs(W-L)<2)//进入加时
{
while(abs(W-L)<2&&s[i]!='\0')
{
if(s[i++]=='W')
W++;
else
L++;
}
}
}
cout<<W<<":"<<L<<endl;
}//11分制
cout<<endl;
i=0;
while(s[i]!='\0')
{
int W=0,L=0;
for(int j=0;j<21&&s[i]!='\0';j++)
{
if(s[i++]=='W')
W++;
else
L++;
if(j==20&&abs(W-L)<2)//进入加时
{
while(abs(W-L)<2&&s[i]!='\0')
{
if(s[i++]=='W')
W++;
else
L++;
}
}
}
cout<<W<<":"<<L<<endl;
}//21分制
}