#include <iostream>
#include <algorithm>
using namespace std;
string str;
char c;
void work( int score)
{
int a = 0, b = 0;
for (int i = 0; i < str.size() && str[i] != 'E'; i ++ )
{
if (str[i] == 'W') a ++ ;
else b ++ ;
if (max(a, b) >= score && abs(a - b) >= 2)
{
printf("%d:%d\n", a, b);
a = b = 0;
}
}
printf("%d:%d\n", a, b);
}
int main()
{
while (cin >> c) str += c;
work(11);
puts("");
work( 21);
return 0;
}