#include<bits/stdc++.h>
using namespace std;
string s;
void read(){
char c;
while(c!='E'){
s+=c;
cin >> c;
}
}
void work(int point_system){
int x=s.size()/point_system;
int w=0,l=0;
for(int i=1;i<=x*point_system;i++){
if(s[i]=='W')w++;
if(s[i]=='L')l++;
if((w>=point_system||l>=point_system)&&abs(w-l)>=2){
cout << w << ':' << l << endl;
w=0,l=0;
}
}
w=0,l=0;
for(int i=x*point_system+1;i<=s.size();i++){
if(s[i]=='W')w++;
if(s[i]=='L')l++;
}
if(s.size()%point_system!=0)cout << w << ':' << l;
}
int main(){
read();
work(11);
cout << endl << endl;
work(21);
return 0;
}