#include <bits/stdc++.h>
using namespace std;
int a[10005][2], b[10005][2];
int main(){
char c;
int win1 = 0, lose1 = 0, win2 = 0, lose2 = 0, index1 = 0, index2 = 0;
while(cin >> c){
if(c == 'E') break;
else if(c == 'W'){
win1++;
win2++;
a[index1][0]++;
b[index2][0]++;
}
else if(c == 'L'){
lose1++;
lose2++;
a[index1][1]++;
b[index2][1]++;
}
if((win1 >= 11 || lose1 >= 11) && (fabs(win1 - lose1) >= 2)){
win1 = 0;
lose1 = 0;
index1++;
}
if((win2 >= 21 || lose2 >= 21) && (fabs(win2 - lose2) >= 2)){
win2 = 0;
lose2 = 0;
index2++;
}
}
for(int i = 0; i <= index1; i++){
cout << a[i][0] << ":" << a[i][1] << endl;
}
cout << endl;
for(int i = 0; i <= index2; i++){
cout << b[i][0] << ":" << b[i][1] << endl;
}
return 0;
}