import math



s = eval(input())

li = [0 for _ in range(len(s))]



for i in range(len(s)):

    if s[i] == "R":

        t = s[i:].index("L")

        if t % 2 != 0:

            li[i + t - 1] += 1

        else:

            li[i + t] += 1

    else:

        t = s[:i].rfind("R")

        if (i - t) % 2 != 0:

            li[t + 1] += 1

        else:

            li[t] += 1



print((*li))
import math



s = eval(input())

li = [0 for _ in range(len(s))]



rCnt = 0

for i in range(len(s)):

    if s[i] == "R":

        rCnt += 1

    else:

        li[i] += rCnt // 2

        li[i - 1] += math.ceil(rCnt / 2)

        rCnt = 0

lCnt = 0

for i in reversed(list(range(len(s)))):

    if s[i] == "L":

        lCnt += 1

    else:

        li[i] += lCnt // 2

        li[i + 1] += math.ceil(lCnt / 2)

        lCnt = 0



print((*li))
import math

s = eval(input())
li = [0 for _ in range(len(s))]
for i in range(len(s)):
    if s[i] == "R":
        t = s[i:].index("L")
        if t % 2 != 0:
            li[i + t - 1] += 1
        else:
            li[i + t] += 1
    else:
        t = s[:i].rfind("R")
        if (i - t) % 2 != 0:
            li[t + 1] += 1
        else:
            li[t] += 1
print((*li))

import math

s = eval(input())
li = [0 for _ in range(len(s))]
rCnt = 0
for i in range(len(s)):
    if s[i] == "R":
        rCnt += 1
    else:
        li[i] += rCnt // 2
        li[i - 1] += math.ceil(rCnt / 2)
        rCnt = 0
lCnt = 0
for i in reversed(list(range(len(s)))):
    if s[i] == "L":
        lCnt += 1
    else:
        li[i] += lCnt // 2
        li[i + 1] += math.ceil(lCnt / 2)
        lCnt = 0
print((*li))

+rCnt = 0 -        t = s[i:].index("L") -        if t % 2 != 0: -            li[i + t - 1] += 1 -        else: -            li[i + t] += 1 +        rCnt += 1 -        t = s[:i].rfind("R") -        if (i - t) % 2 != 0: -            li[t + 1] += 1 -        else: -            li[t] += 1 +        li[i] += rCnt // 2 +        li[i - 1] += math.ceil(rCnt / 2) +        rCnt = 0 +lCnt = 0 +for i in reversed(list(range(len(s)))): +    if s[i] == "L": +        lCnt += 1 +    else: +        li[i] += lCnt // 2 +        li[i + 1] += math.ceil(lCnt / 2) +        lCnt = 0