#include<stdio.h>
#include<iostream>
#include<string.h>
#include<algorithm>
using namespace std;
int main(){
string str;
int cnt=0;
getline(cin,str,'E');
int w=0,e=0,i=0;
while(str[i]!='\0'){
if(str[i]=='\n'){
i++;
continue;
}
if(w==10 && e==10){
while(abs(w-e)<2 && str[i]!='\0'){
if(str[i]=='\n'){
i++;
continue;
}
else if(str[i]=='W') w++;
else e++;
i++;
}
printf("%d:%d\n",w,e);
w=e=0;
}else{
if(str[i]=='W') w++;
else e++;
if(w==11 || e==11){
printf("%d:%d\n",w,e);
w=e=0;
}
i++;
}
}
if(w||e) printf("%d:%d\n",w,e);
cout<<endl;
w=e=i=0;
while(str[i]!='\0'){
if(str[i]=='\n'){
i++;
continue;
}
if(w==20 && e==20){
while(abs(w-e)<2 && str[i]!='\0'){
if(str[i]=='\n'){
i++;
continue;
}
else if(str[i]=='W') w++;
else e++;
i++;
}
printf("%d:%d\n",w,e);
w=e=0;
}else{
if(str[i]=='W') w++;
else e++;
if(w==21 || e==21){
printf("%d:%d\n",w,e);
w=e=0;
}
i++;
}
}
if(w||e) printf("%d:%d\n",w,e);
return 0;
}