var
a:array[1..1000000] of char;
s:longint;
x1,y1,x2,y2:integer;
procedure old;
var i:longint;
begin
writeln;
for i:=1 to s-1 do
begin
if a[i]='W' then
inc(x2);
if a[i]='L' then
inc(y2);
if (x2>=21) or (y2>=21) then
if ((x2-y2>1)) or ((y2-x2)>1)then
begin write(x2,':',y2);writeln;x2:=0;y2:=0;end;
end;
write(x2,':',y2);
writeln;
end;
procedure new;
begin
s:=0;
x1:=0;y1:=0;x2:=0;y2:=0;
while true do
begin
inc(s);
read(a[s]);
if a[s]='E' then begin write(x1,':',y1);writeln;old;halt;end;
if a[s]='W' then
inc(x1);
if a[s]='L' then
inc(y1);
if (x1>=11) or (y1>=11) then
if (abs(x1-y1)>1) then
begin write(x1,':',y1);writeln;x1:=0;y1:=0;end;
end;
end;
begin
new;
end.