#include <iostream>
#include <vector>
#include <cmath>
using namespace std;
int main()
{
vector<char> v1;
while (1)
{
char a;
cin >> a;
if (a == 'E')break;
v1.push_back(a);
}
int a, b;
a = 0; b = 0;
for (vector<char>::iterator t = v1.begin(); t != v1.end(); t++)
{
if (a < 11 && b < 11)
{
if (*t == 'W')a++;
else if (*t == 'L') b++;
}
if (max(a, b) >=11 && abs(a - b) >= 2) { cout << a << ":" << b << endl; a = 0; b = 0; }
}
if (a > 0 || b > 0)cout << a << ":" << b << endl;
cout << endl;
int c, d;
c = 0; d = 0;
for (vector<char>::iterator t = v1.begin(); t != v1.end(); t++)
{
if (c < 21 && d < 21)
{
if (*t == 'W')c++;
else if (*t == 'L') d++;
}
if (max(c,d) >=21 && abs(c - d) >= 2) { cout << c << ":" << d << endl; c = 0; d = 0; }
}
if (c > 0 || d > 0)cout << c << ":" << d << endl;
return 0;
}