#include<iostream>
#include<cmath>
using namespace std;
char a[1000001],m;
int k=0;
int main(){
while(cin>>m&&m!='E'){
if(m=='W'||m=='L'){
a[k]=m;
k++;
}
}
int x=0,y=0;
for(int i=0;i<k;i++){
if(a[i]=='W'){
x++;
}
if(a[i]=='L'){
y++;
}
if(x>=11||y>=11&&abs(x-y)>=2){
cout<<x<<":"<<y<<endl;
x=0;
y=0;
}
}
cout<<x<<":"<<y<<endl;
cout<<endl;
x=0;
y=0;
for(int i=0;i<k;i++){
if(a[i]=='W'){
x++;
}if(a[i]=='L'){
y++;
}
if(x>=21||y>=21&&abs(x-y)>=2){
cout<<x<<":"<<y<<endl;
x=0;
y=0;
}
}
cout<<x<<":"<<y<<endl;
return 0;
}