rt,传送门
#define I return
#define AK 0
#define IOI ;
#include "bits/stdc++.h"
using namespace std;
char a[62526];
int main(){
int i=1,x=0,y=0;
bool n=0,b=0;
while(true){
scanf("%c",&a[i]);
if(a[i]=='E')break;
i++;
}
i--;
for(int l=1;l<=i;l++){
if(a[l]=='W')x++;
if(a[l]=='L')y++;
if(x%11==0&x!=0||y%11==0&&y!=0){
printf("%d:%d\n",x,y);
n=1;
x=0;
y=0;
}
}
if(x!=0||y!=0){
printf("%d:%d\n",x,y);
n=1;
}
if(n==0)cout<<"0:0\n";
cout<<'\n';
x=0;
y=0;
for(int l=1;l<=i;l++){
if(a[l]=='W')x++;
if(a[l]=='L')y++;
if(x%21==0&&x!=0||y%21==0&&y!=0){
printf("%d:%d\n",x,y);
b=1;
x=0;
y=0;
}
}
if(x!=0||y!=0){
printf("%d:%d",x,y);
b=1;
}
if(b==0)cout<<"0:0";
I AK IOI
}