

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