#include<bits/stdc++.h>
using namespace std;
int v_11[3],v_21[3];
char str[100001];
int main(){
int i=1;
while(1){
cin>>str[i];
if(str[i]=='E'){
break;
}
}
for(int j=1;j<=i-1;j++){
if(((v_11[1]>=11)&&(v_11[1]-v_11[2]>=2))||((v_11[2]>=11)&&(v_11[2]-v_11[1]>=2))){
cout<<v_11[1]<<':'<<v_11[2]<<endl;
v_11[1]=0;
v_11[2]=0;
}
if(str[i]=='W'){
v_11[1]++;
}
if(str[i]=='L'){
v_11[2]++;
}
}
cout<<v_11[1]<<':'<<v_11[2]<<endl<<endl;
for(int j=1;j<=i-1;j++){
if(((v_21[1]>=21)&&(v_21[1]-v_21[2]>=2))||((v_21[2]>=21)&&(v_21[2]-v_21[1]>=2))){
cout<<v_21[1]<<':'<<v_21[2]<<endl;
v_21[1]=0;
v_21[2]=0;
}
if(str[i]=='W'){
v_21[1]++;
}
if(str[i]=='L'){
v_21[2]++;
}
}
cout<<v_21[1]<<':'<<v_21[2]<<endl;
return 0;
}