S = input()

S = S[1:-1]

#print(S)

S = S.split("LR")



ans = []

for i in range(len(S)):

    tp = "R" + S[i] + "L"

    #print(tp)

    rn = len(tp.split("RL")[0])+1

    ln = len(tp) - rn 

    #print(rn,ln)

    for k in range(rn-1):

        ans.append(0)

    ans.append(-(-rn//2) + ln//2)

    ans.append(-(-ln//2) + rn//2)

    for k in range(ln-1):

        ans.append(0)

    #print()

#print(S)



[print(str(i) + " ",end="") for i in ans]

print()

S = eval(input())

S = S[1:-1]

#print(S)

S = S.split("LR")



ans = ""

for i in range(len(S)):

    tp = "R" + S[i] + "L"

    #print(tp)

    rn = len(tp.split("RL")[0])+1

    ln = len(tp) - rn 

    #print(rn,ln)

    for k in range(rn-1):

        ans += "0 "

    ans += str(-(-rn//2) + ln//2) +" "

    ans += str(-(-ln//2) + rn//2) +" "

    for k in range(ln-1):

        ans += "0 "

    #print()

#print(S)



print(ans)
S = input()
S = S[1:-1]
# print(S)
S = S.split("LR")
ans = []
for i in range(len(S)):
    tp = "R" + S[i] + "L"
    # print(tp)
    rn = len(tp.split("RL")[0]) + 1
    ln = len(tp) - rn
    # print(rn,ln)
    for k in range(rn - 1):
        ans.append(0)
    ans.append(-(-rn // 2) + ln // 2)
    ans.append(-(-ln // 2) + rn // 2)
    for k in range(ln - 1):
        ans.append(0)
    # print()
# print(S)
[print(str(i) + " ", end="") for i in ans]
print()

S = eval(input())
S = S[1:-1]
# print(S)
S = S.split("LR")
ans = ""
for i in range(len(S)):
    tp = "R" + S[i] + "L"
    # print(tp)
    rn = len(tp.split("RL")[0]) + 1
    ln = len(tp) - rn
    # print(rn,ln)
    for k in range(rn - 1):
        ans += "0 "
    ans += str(-(-rn // 2) + ln // 2) + " "
    ans += str(-(-ln // 2) + rn // 2) + " "
    for k in range(ln - 1):
        ans += "0 "
    # print()
# print(S)
print(ans)

-S = input() +S = eval(input()) -ans = [] +ans = "" -        ans.append(0) -    ans.append(-(-rn // 2) + ln // 2) -    ans.append(-(-ln // 2) + rn // 2) +        ans += "0 " +    ans += str(-(-rn // 2) + ln // 2) + " " +    ans += str(-(-ln // 2) + rn // 2) + " " -        ans.append(0) +        ans += "0 " -[print(str(i) + " ", end="") for i in ans] -print() +print(ans)