#include<iostream>
#include<string.h>
#include<cmath>
using namespace std;
int main(){
string s;
char game[63000];
int i=0,l=0,t=0,j1;
while(cin>>s&&i<2500){
for(int j=0;j<s.length();j++){
if(s[j]!='E')
game[l+j]=s[j];
else{
t=1;
j1=j;
break;
}
}
if(t==1){
l+=j1;
break;
}
l+=s.length();
i+=1;
}
if(l==0){
cout<<"0:0"<<endl;
cout<<endl;
cout<<"0:0"<<endl;
}
else{
int w=0,w1=0;
for(int j=0;j<l;j++){
if(game[j]=='W')
w++;
else
w1++;
if(((w>=11||w1>=11)&&abs(w-w1)>=2)||j==l-1){
cout<<w<<":"<<w1<<endl;
w=0;
w1=0;
}
}
cout<<endl;
for(int j=0;j<l;j++){
if(game[j]=='W')
w++;
else
w1++;
if(((w>=21||w1>=21)&&abs(w-w1)>=2)||j==l-1){
cout<<w<<":"<<w1<<endl;
w=0;
w1=0;
}
}
}
return 0;
}