#include<bits/stdc++.h>
using namespace std;
char c[62505],l;
int ele[2][630],twe[2][630]={0};
void elecmp(){
ele[0][0]=0;
int i=0,j=0;
while(c[j]=='W'||c[j]=='L'){
if(c[j]=='W'){
ele[0][i]++;
}else if(c[j]=='L'){
ele[1][i]++;
}
if((ele[0][i]>=11||ele[1][i]>=11)&&(abs(ele[0][i]-ele[1][i])>=2)){
i++;
}
j++;
}
}
void twecmp(){
twe[0][0]=0;
int i=0,j=0;
while(c[j]=='W'||c[j]=='L'){
if(c[j]=='W'){
twe[0][i]++;
}else if(c[j]=='L'){
twe[1][i]++;
}
if((twe[0][i]>=21||twe[1][i]>=21)&&(abs(twe[0][i]-twe[1][i])>=2)){
i++;
}
j++;
}
}
void output(){
for(int i=0;ele[0][i]!=0||ele[1][i]!=0;i++){
printf("%d:%d\n",ele[0][i],ele[1][i]);
}
cout<<endl;
for(int i=0;twe[0][i]!=0||twe[1][i]!=0;i++){
printf("%d:%d\n",twe[0][i],twe[1][i]);
}
}
int main(){
for(int i=0;cin>>l&&l!='E';i++){
c[i]=l;
}
elecmp();
twecmp();
output();
return 0;
}
想法比较蒟蒻