def simulate(s,k):#统计结果并输出的函数
    w, l = 0, 0
    for c in s:
        if c=='W':#注意大小写
            w += 1
        else:
            l += 1
        
        if (w>=k or l>=k) and abs(w-l)>=2:
            print(f'{w}:{l}')
            w, l = 0, 0

    print(f'{w}:{l}')

s = input()
simulate(s,11)#调用11分制
print()
simulate(s,21)#调用21分制