S = eval(input())



count = 0

letter = "R"



end = [0] * len(S)



for i, s in enumerate(S):

    if s == letter:

        count += 1

    else:

        letter = s

        evens = count // 2

        odds = (count + 1) // 2

        if s == "L":

            if count % 2 == 0:

                end[i - 1] += evens

                end[i] += odds

            else:

                end[i - 1] += odds

                end[i] += evens

        if s == "R":

            end[i - count] += odds

            end[i - count - 1] += evens

        count = 1



evens = count // 2

odds = (count + 1) // 2

end[i - count + 1] += odds

end[i - count] += evens



end = [str(item) for item in end]

end = " ".join(end)

print(end)

S = eval(input())



count = 0

letter = "R"



end = [0] * len(S)



for i, s in enumerate(S + "E"):

    if s == letter:

        count += 1

    else:

        odds = (count + 1) // 2

        evens = count // 2

        if s == "L":

            end[i] += evens

            end[i - 1] += odds

        else:

            end[i - count] += odds

            end[i - count - 1] += evens

        count = 1

        letter = s



end = [str(item) for item in end]

end = " ".join(end)

print(end)

S = eval(input())
count = 0
letter = "R"
end = [0] * len(S)
for i, s in enumerate(S):
    if s == letter:
        count += 1
    else:
        letter = s
        evens = count // 2
        odds = (count + 1) // 2
        if s == "L":
            if count % 2 == 0:
                end[i - 1] += evens
                end[i] += odds
            else:
                end[i - 1] += odds
                end[i] += evens
        if s == "R":
            end[i - count] += odds
            end[i - count - 1] += evens
        count = 1
evens = count // 2
odds = (count + 1) // 2
end[i - count + 1] += odds
end[i - count] += evens
end = [str(item) for item in end]
end = " ".join(end)
print(end)

S = eval(input())
count = 0
letter = "R"
end = [0] * len(S)
for i, s in enumerate(S + "E"):
    if s == letter:
        count += 1
    else:
        odds = (count + 1) // 2
        evens = count // 2
        if s == "L":
            end[i] += evens
            end[i - 1] += odds
        else:
            end[i - count] += odds
            end[i - count - 1] += evens
        count = 1
        letter = s
end = [str(item) for item in end]
end = " ".join(end)
print(end)

-for i, s in enumerate(S): +for i, s in enumerate(S + "E"): -        letter = s +        odds = (count + 1) // 2 -        odds = (count + 1) // 2 -            if count % 2 == 0: -                end[i - 1] += evens -                end[i] += odds -            else: -                end[i - 1] += odds -                end[i] += evens -        if s == "R": +            end[i] += evens +            end[i - 1] += odds +        else: -evens = count // 2 -odds = (count + 1) // 2 -end[i - count + 1] += odds -end[i - count] += evens +        letter = s