#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int j = 0, k = 0;
char c;
int ans11[10000][2] = {{0}};
int ans21[5000][2] = {{0}};
while ((c = getchar()) != 'E')
{
switch (c)
{
case 'W': ans11[j][0]++, ans21[k][0]++; break;
case 'L': ans11[j][1]++, ans21[k][1]++; break;
}
if ((ans11[j][0]>= 11 || ans11[j][1] >= 11) && abs(ans11[j][0] - ans11[j][1]) >= 2)
j++;
if ((ans21[k][0]>= 21 || ans11[k][1] >= 21) && abs(ans21[k][0] - ans21[k][1]) >= 2)
k++;
}
for (int j0 = 0; j0 <= j; j0++)
printf("%d:%d\n", ans11[j0][0], ans11[j0][1]);
putchar('\n');
for (int k0 = 0; k0 <= k; k0++)
printf("%d:%d\n", ans21[k0][0], ans21[k0][1]);
return 0;
}