#include<bits/stdc++.h>
using namespace std;
int tmp,n,j,w,l;
long long a[1000005],f[1000005];
int main(){
while(1){
cin>>tmp;
if(tmp=='E') break;
else if(tmp=='W') a[n++]=1;
else if(tmp=='L') a[n++]=0;
}
for(int i=0;i<2;i++){
int w=0,l=0;
for(int j=0;j<n;j++){
w+=a[i];
l+=1-a[i];
}
cout<<'W'<<":"<<l<<endl;
cout<< endl;
}
if((max(w,l)<=f[j])&&abs(w-l)>=2){
cout<<'W'<<":"<<l<<endl;
w=l=0;
}
return 0;
}