S = str(input())



n = len(S)

ans = [0 for x in range(n)]

i = 0

ToRight = True

while i < n - 1:

    start = i

    while i < n - 1 and S[i + 1] == S[i]:

        i += 1

    if ToRight:

        ans[i] += (i + 1 - start) // 2 + (i + 1 - start) % 2

        ans[i + 1] += (i + 1 - start) // 2

    else:

        ans[start] += (i + 1 - start) // 2 + (i + 1 - start) % 2

        ans[start - 1] += (i + 1 - start) // 2

    i += 1

    ToRight = not ToRight

if S[n - 2] == 'R':

    ans[n - 1] += 1



for i in range(n):

    print(ans[i], end=' ')

    if i == n - 1:

        print('\n')

S = str(eval(input()))



n = len(S)

ans = [0 for x in range(n)]

i = 0

ToRight = True

while i < n - 1:

    start = i

    while i < n - 1 and S[i + 1] == S[i]:

        i += 1

    if ToRight:

        ans[i] += (i + 1 - start) // 2 + (i + 1 - start) % 2

        ans[i + 1] += (i + 1 - start) // 2

    else:

        ans[start] += (i + 1 - start) // 2 + (i + 1 - start) % 2

        ans[start - 1] += (i + 1 - start) // 2

    i += 1

    ToRight = not ToRight

if S[n - 2] == 'R':

    ans[n - 1] += 1



print((*ans))
S = str(input())
n = len(S)
ans = [0 for x in range(n)]
i = 0
ToRight = True
while i < n - 1:
    start = i
    while i < n - 1 and S[i + 1] == S[i]:
        i += 1
    if ToRight:
        ans[i] += (i + 1 - start) // 2 + (i + 1 - start) % 2
        ans[i + 1] += (i + 1 - start) // 2
    else:
        ans[start] += (i + 1 - start) // 2 + (i + 1 - start) % 2
        ans[start - 1] += (i + 1 - start) // 2
    i += 1
    ToRight = not ToRight
if S[n - 2] == "R":
    ans[n - 1] += 1
for i in range(n):
    print(ans[i], end=" ")
    if i == n - 1:
        print("\n")

S = str(eval(input()))
n = len(S)
ans = [0 for x in range(n)]
i = 0
ToRight = True
while i < n - 1:
    start = i
    while i < n - 1 and S[i + 1] == S[i]:
        i += 1
    if ToRight:
        ans[i] += (i + 1 - start) // 2 + (i + 1 - start) % 2
        ans[i + 1] += (i + 1 - start) // 2
    else:
        ans[start] += (i + 1 - start) // 2 + (i + 1 - start) % 2
        ans[start - 1] += (i + 1 - start) // 2
    i += 1
    ToRight = not ToRight
if S[n - 2] == "R":
    ans[n - 1] += 1
print((*ans))

-S = str(input()) +S = str(eval(input())) -for i in range(n): -    print(ans[i], end=" ") -    if i == n - 1: -        print("\n") +print((*ans))