#include <stdio.h>
#define N 25
#define M 2501
int main()
{
int text1(char str[M][N]);
int text2(char str[M][N]);
char str[M][N];
for (int i = 0; i < M; i++)
{
for (int j = 0; j <= N; j++)
{
str[i][j] =getchar();
if (str[i][j] == 'E')
{
text1(str);
printf("\n");
text2(str);
return 0;
}
}
}
return 0;
}
int text1(char str[M][N])
{
int a=0, b=0;
for (int i = 0; i < M; i++)
{
for(int j=0;j<N;j++)
{
if(str[i][j]=='E')
printf("%d:%d\n", a, b);
else if (str[i][j] == 'W')
a++;
else if (str[i][j] == 'L')
b++;
while (a >= 11 || b >= 11)
{
int c;
if (a > b)
c = a - b;
else
c = b - a;
if(c>=2)
printf("%d:%d\n", a, b);
a = 0;
b = 0;
}
}
}
return 0;
}
int text2(char str[M][N])
{
int a = 0, b = 0;
for (int i = 0; i < M; i++)
{
for (int j = 0; j < N; j++)
{
if (str[i][j] == 'E')
printf("%d:%d\n", a, b);
else if (str[i][j] == 'W')
a++;
else if (str[i][j] == 'L')
b++;
while (a >= 21 || b >= 21)
{
int c;
if (a > b)
c = a - b;
else
c = b - a;
if (c >= 2)
printf("%d:%d\n", a, b);
a = 0;
b = 0;
}
}
}
return 0;
}