from itertools import accumulate

S = input()

ans = [0]*len(S)

RLgr = []

R = 0

L = 0

RL = "R"

for i in range(len(S)):

    if S[i] == RL:

        if S[i] == "R":

            R += 1

        else:

            L += 1

    else:

        if RL == "R":

            RLgr.append(R)

            R = 0

            RL = "L"

            L+=1

        else:

            RLgr.append(L)

            L = 0

            RL = "R"

            R+=1

RLgr.append(L)

RLsum = list(accumulate(RLgr))

for i in range(0,len(RLgr)-1,+2):

    a=RLgr[i]//2

    b=RLgr[i+1]//2

    ans[RLsum[i]-1]=b+RLgr[i]-a

    ans[RLsum[i]]=a+RLgr[i+1]-b



for i in ans:

    print(i,end=" ")

S = eval(input())+"R"

R = 0

L = 0

ans = [0]*(len(S)-1)

for i in range(len(S)-1):

    if S[i] == "R":

        if S[i+1] == "L":

            R += 1

            if R % 2 == 0:

                ans[i] += R//2

                ans[i+1] += R//2

            else:

                R -= 1

                ans[i] += R//2+1

                ans[i+1] += R//2

            point = i

        else:

            R += 1

    else:

        if S[i+1] == "R":

            L += 1

            if L % 2 == 0:

                ans[point] += L//2

                ans[point+1] += L//2

            else:

                L -= 1

                ans[point] += L//2

                ans[point+1] += L//2+1

            R = 0

            L = 0

        else:

            L += 1



print((' '.join(map(str, ans))))

from itertools import accumulate

S = input()
ans = [0] * len(S)
RLgr = []
R = 0
L = 0
RL = "R"
for i in range(len(S)):
    if S[i] == RL:
        if S[i] == "R":
            R += 1
        else:
            L += 1
    else:
        if RL == "R":
            RLgr.append(R)
            R = 0
            RL = "L"
            L += 1
        else:
            RLgr.append(L)
            L = 0
            RL = "R"
            R += 1
RLgr.append(L)
RLsum = list(accumulate(RLgr))
for i in range(0, len(RLgr) - 1, +2):
    a = RLgr[i] // 2
    b = RLgr[i + 1] // 2
    ans[RLsum[i] - 1] = b + RLgr[i] - a
    ans[RLsum[i]] = a + RLgr[i + 1] - b
for i in ans:
    print(i, end=" ")

S = eval(input()) + "R"
R = 0
L = 0
ans = [0] * (len(S) - 1)
for i in range(len(S) - 1):
    if S[i] == "R":
        if S[i + 1] == "L":
            R += 1
            if R % 2 == 0:
                ans[i] += R // 2
                ans[i + 1] += R // 2
            else:
                R -= 1
                ans[i] += R // 2 + 1
                ans[i + 1] += R // 2
            point = i
        else:
            R += 1
    else:
        if S[i + 1] == "R":
            L += 1
            if L % 2 == 0:
                ans[point] += L // 2
                ans[point + 1] += L // 2
            else:
                L -= 1
                ans[point] += L // 2
                ans[point + 1] += L // 2 + 1
            R = 0
            L = 0
        else:
            L += 1
print((" ".join(map(str, ans))))

-from itertools import accumulate - -S = input() -ans = [0] * len(S) -RLgr = [] +S = eval(input()) + "R" -RL = "R" -for i in range(len(S)): -    if S[i] == RL: -        if S[i] == "R": +ans = [0] * (len(S) - 1) +for i in range(len(S) - 1): +    if S[i] == "R": +        if S[i + 1] == "L": +            if R % 2 == 0: +                ans[i] += R // 2 +                ans[i + 1] += R // 2 +            else: +                R -= 1 +                ans[i] += R // 2 + 1 +                ans[i + 1] += R // 2 +            point = i +        else: +            R += 1 +    else: +        if S[i + 1] == "R": +            L += 1 +            if L % 2 == 0: +                ans[point] += L // 2 +                ans[point + 1] += L // 2 +            else: +                L -= 1 +                ans[point] += L // 2 +                ans[point + 1] += L // 2 + 1 +            R = 0 +            L = 0 -    else: -        if RL == "R": -            RLgr.append(R) -            R = 0 -            RL = "L" -            L += 1 -        else: -            RLgr.append(L) -            L = 0 -            RL = "R" -            R += 1 -RLgr.append(L) -RLsum = list(accumulate(RLgr)) -for i in range(0, len(RLgr) - 1, +2): -    a = RLgr[i] // 2 -    b = RLgr[i + 1] // 2 -    ans[RLsum[i] - 1] = b + RLgr[i] - a -    ans[RLsum[i]] = a + RLgr[i + 1] - b -for i in ans: -    print(i, end=" ") +print((" ".join(map(str, ans))))