S=input()

N=len(S)

ans=[0]*N



cnt_o=1

cnt_e=0

idx=0

f=True   #True=R

for i in range(1,N):

    if f==True:

        if S[i]=="R":

            temp=cnt_e

            cnt_e=cnt_o

            cnt_o =temp+1

        else:

            ans[i-1]+=cnt_o

            ans[i]=cnt_e

            cnt_o=1

            cnt_e=0

            f=False

            idx=i

    else:

        if S[i]=="L":

            temp=cnt_e

            cnt_e=cnt_o

            cnt_o=temp+1

        else:

            ans[idx]+=cnt_o

            ans[idx-1]+=cnt_e

            cnt_o=1

            cnt_e=0

            f=True



ans[idx]+=cnt_o

ans[idx-1]+=cnt_e



for i in range(N):

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





S=eval(input())

N=len(S)

ans=[0]*N



cnt=1

idx=0

f=True   #True=R

for i in range(1,N):

    if f==True:

        if S[i]=="R":

            cnt+=1

        else:

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

            ans[i]=cnt//2

            cnt=1

            f=False

            idx=i

    else:

        if S[i]=="L":

            cnt+=1

        else:

            ans[idx]+=(cnt+1)//2

            ans[idx-1]+=cnt//2

            cnt=1



            f=True



ans[idx]+=(cnt+1)//2

ans[idx-1]+=cnt//2



print((*ans))

S = input()
N = len(S)
ans = [0] * N
cnt_o = 1
cnt_e = 0
idx = 0
f = True  # True=R
for i in range(1, N):
    if f == True:
        if S[i] == "R":
            temp = cnt_e
            cnt_e = cnt_o
            cnt_o = temp + 1
        else:
            ans[i - 1] += cnt_o
            ans[i] = cnt_e
            cnt_o = 1
            cnt_e = 0
            f = False
            idx = i
    else:
        if S[i] == "L":
            temp = cnt_e
            cnt_e = cnt_o
            cnt_o = temp + 1
        else:
            ans[idx] += cnt_o
            ans[idx - 1] += cnt_e
            cnt_o = 1
            cnt_e = 0
            f = True
ans[idx] += cnt_o
ans[idx - 1] += cnt_e
for i in range(N):
    print(str(ans[i]), end=" ")

S = eval(input())
N = len(S)
ans = [0] * N
cnt = 1
idx = 0
f = True  # True=R
for i in range(1, N):
    if f == True:
        if S[i] == "R":
            cnt += 1
        else:
            ans[i - 1] += (cnt + 1) // 2
            ans[i] = cnt // 2
            cnt = 1
            f = False
            idx = i
    else:
        if S[i] == "L":
            cnt += 1
        else:
            ans[idx] += (cnt + 1) // 2
            ans[idx - 1] += cnt // 2
            cnt = 1
            f = True
ans[idx] += (cnt + 1) // 2
ans[idx - 1] += cnt // 2
print((*ans))

-S = input() +S = eval(input()) -cnt_o = 1 -cnt_e = 0 +cnt = 1 -            temp = cnt_e -            cnt_e = cnt_o -            cnt_o = temp + 1 +            cnt += 1 -            ans[i - 1] += cnt_o -            ans[i] = cnt_e -            cnt_o = 1 -            cnt_e = 0 +            ans[i - 1] += (cnt + 1) // 2 +            ans[i] = cnt // 2 +            cnt = 1 -            temp = cnt_e -            cnt_e = cnt_o -            cnt_o = temp + 1 +            cnt += 1 -            ans[idx] += cnt_o -            ans[idx - 1] += cnt_e -            cnt_o = 1 -            cnt_e = 0 +            ans[idx] += (cnt + 1) // 2 +            ans[idx - 1] += cnt // 2 +            cnt = 1 -ans[idx] += cnt_o -ans[idx - 1] += cnt_e -for i in range(N): -    print(str(ans[i]), end=" ") +ans[idx] += (cnt + 1) // 2 +ans[idx - 1] += cnt // 2 +print((*ans))