#include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
using namespace std;
char ch;
int ela[4600]={0},elb[4600]={0};//假设全部为小华赢 一共有50000局
int twa[2400]={0},twb[2400]={0};//尼玛数据都给错
int CountE=0,CountA=0;
int main()
{
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
while(scanf("%c",&ch)==1){
if(ch=='E') break;
else if(ch=='\n')continue;
else if(ch=='W'){
ela[CountE]++;
twa[CountA]++;
}
else if(ch=='L'){
elb[CountE]++;
twb[CountA]++;
}
if((ela[CountE]>=11||elb[CountE]>=11)&&(abs(ela[CountE]-elb[CountE])>=2))
CountE++;//当有人比分大于等于11分并且分差大于等于2时才切换下一局
if((twa[CountA]>=21||twb[CountA]>=21)&&(abs(twa[CountA]-twb[CountA])>=2))
CountA++;
}
for(int i=0;i<=CountE;i++)
printf("%d:%d\n",ela[i],elb[i]);
printf("\n");
for(int i=0;i<=CountA;i++)
printf("%d:%d\n",twa[i],twb[i]);
return 0;
}
/*
while(scanf("%s",str)!=EOF){
int len=strlen(str);
for(int i=0;i<len;i++){
if(str[i]=='W'){
ela[Count/11]++;
twa[Count/21]++;
}
if(str[i]=='L'){
elb[Count/11]++;
twb[Count/21]++;
}
}
}
*/