#include <bits/stdc++.h>
using namespace std;
int cnt1,cnt2;
char c;
string s;
int main()
{
while(scanf("%c",&c) == 1)
{
if(c == 'E') break;
if(c != ' ' && c != '\n') s += c;
}
int len = s.length();
for(int i = 0;i < len;i++)
{
if(s[i] == 'W') cnt1++;
else cnt2++;
if((cnt1 >= 11 || cnt2 >= 11) && abs(cnt1 - cnt2) >= 2)
{
cout << cnt1 << ':' << cnt2 << endl;
cnt1 = 0,cnt2 = 0;
}
}
cout << cnt1 << ':' << cnt2 << endl << endl;
cnt1 = 0,cnt2 = 0;
for(int i = 0;i < len;i++)
{
if(s[i] == 'W') cnt1++;
else cnt2++;
if((cnt1 >= 21 || cnt2 >= 21) && abs(cnt1 - cnt2) >= 2)
{
cout << cnt1 << ':' << cnt2 << endl;
cnt1 = 0,cnt2 = 0;
}
}
cout << cnt1 << ':' << cnt2 << endl;
return 0;
}