#include<bits/stdc++.h>
using namespace std;
using ll=long long;
#define up(i,l,r) for(ll i=l;i<=r;i++)
#define clr(a) memset(a,0,sizeof(a))
bool ar[90000];
ll n=0;
void input() {
char x;
while(cin>>x) {
if (x=='W') ar[++n]=1;
if (x=='L') ar[++n]=0;
if (x=='E') break;
}
}
void work(ll step) {
ll w,l,c,flag=0;
w=l=c=0;
up(i,1,n) {
if (c==step)
flag=1,
printf("%d:%d\n",w,l),
w=l=c=0;
if (ar[i]) w++;
else l++;
c++;
}
if (c||!flag) printf("%d:%d\n",w,l);
}
int main() {
clr(ar);
input();
work(11);
cout<<endl;
work(21);
return 0;
}