#include<bits/stdc++.h>
using namespace std;
string s[3000],s2;
int k,hh,ds;
int main(){
while(cin>>s[k]){
k++;
}
for(int i=0;i<k;i++){
s2+=s[i];
}
for(int i=0;i<s2.size();i++){
if(s2[i]=='W') hh++;
else if(s2[i]=='L') ds++;
else{
cout<<hh<<":"<<ds<<endl;
hh=0;ds=0;
break;
}
if((hh==11&&ds<10)||(hh<10)&&ds==11){
cout<<hh<<":"<<ds<<endl;
hh=0;
ds=0;
}else if(hh>=10&&ds>=10&&(hh<=ds-2||ds<=hh-2)){
cout<<hh<<":"<<ds<<endl;
hh=0;
ds=0;
}
}
cout<<endl;
for(int i=0;i<s2.size();i++){
if(s2[i]=='W') hh++;
else if(s2[i]=='L') ds++;
else{
cout<<hh<<":"<<ds;
break;
}
if((hh==21&&ds<20)||(hh<20)&&ds==21){
cout<<hh<<":"<<ds<<endl;
hh=0;
ds=0;
}else if(hh>=20&&ds>=20&&(hh<=ds+2||ds<=hh+2)){
cout<<hh<<":"<<ds<<endl;
hh=0;
ds=0;
}
}
return 0;
}