s=eval(input())

cnt={'R':0,'L':0}



l=[]

cnt=0

for i in range(len(s)):

    if i==len(s)-1:

        if s[i]==s[i-1]:

            l.append((s[i],cnt+1))

        else:

            l.append((s[i-1],cnt))

            l.append((s[i],1))



    elif i>=1 and s[i]!=s[i-1]:

        l.append((s[i-1],cnt))

        cnt=1

    elif i==0 or s[i]==s[i-1]:

        cnt+=1



#print(l)



ans=[0]*len(s)

index_num=-1

for i in range(len(l)):

    s,num=l[i]

    if i==0 and s=='L':

        ans[0]=num

        index_num+=num



    if s=='R':

        index_num+=num

        ans[index_num]+=(num-1)//2+1

        ans[index_num+1]+=num//2

    else:

        ans[index_num+1]+=(num-1)//2+1

        ans[index_num]+=num//2

        index_num+=num

    #print(ans,index_num)

print((*ans))
s=eval(input())

def comp():

    l=[]

    temp_S=s[0]

    cnt=1

    for i in range(1,len(s)):

        if s[i]==temp_S:cnt+=1

        else:

            l.append((temp_S,cnt))

            cnt=1

            temp_S=s[i]

    l.append((temp_S,cnt))

    return l

l=comp()

#print(l)

ans=[0]*len(s)



next_s='R'

cnt=0

for x,y in l:

    if cnt==0 and x=='L':

        ans[0]=y

        cnt+=y

    if x=='R':

        cnt+=y

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

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

    elif x=='L':

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

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

        cnt+=y

print((*ans))
s = eval(input())
cnt = {"R": 0, "L": 0}
l = []
cnt = 0
for i in range(len(s)):
    if i == len(s) - 1:
        if s[i] == s[i - 1]:
            l.append((s[i], cnt + 1))
        else:
            l.append((s[i - 1], cnt))
            l.append((s[i], 1))
    elif i >= 1 and s[i] != s[i - 1]:
        l.append((s[i - 1], cnt))
        cnt = 1
    elif i == 0 or s[i] == s[i - 1]:
        cnt += 1
# print(l)
ans = [0] * len(s)
index_num = -1
for i in range(len(l)):
    s, num = l[i]
    if i == 0 and s == "L":
        ans[0] = num
        index_num += num
    if s == "R":
        index_num += num
        ans[index_num] += (num - 1) // 2 + 1
        ans[index_num + 1] += num // 2
    else:
        ans[index_num + 1] += (num - 1) // 2 + 1
        ans[index_num] += num // 2
        index_num += num
    # print(ans,index_num)
print((*ans))

s = eval(input())


def comp():
    l = []
    temp_S = s[0]
    cnt = 1
    for i in range(1, len(s)):
        if s[i] == temp_S:
            cnt += 1
        else:
            l.append((temp_S, cnt))
            cnt = 1
            temp_S = s[i]
    l.append((temp_S, cnt))
    return l


l = comp()
# print(l)
ans = [0] * len(s)
next_s = "R"
cnt = 0
for x, y in l:
    if cnt == 0 and x == "L":
        ans[0] = y
        cnt += y
    if x == "R":
        cnt += y
        ans[cnt - 1] += (y + 1) // 2
        ans[cnt] += y - (y + 1) // 2
    elif x == "L":
        ans[cnt] += (y + 1) // 2
        ans[cnt - 1] += y - (y + 1) // 2
        cnt += y
print((*ans))

-cnt = {"R": 0, "L": 0} -l = [] -cnt = 0 -for i in range(len(s)): -    if i == len(s) - 1: -        if s[i] == s[i - 1]: -            l.append((s[i], cnt + 1)) + + +def comp(): +    l = [] +    temp_S = s[0] +    cnt = 1 +    for i in range(1, len(s)): +        if s[i] == temp_S: +            cnt += 1 -            l.append((s[i - 1], cnt)) -            l.append((s[i], 1)) -    elif i >= 1 and s[i] != s[i - 1]: -        l.append((s[i - 1], cnt)) -        cnt = 1 -    elif i == 0 or s[i] == s[i - 1]: -        cnt += 1 +            l.append((temp_S, cnt)) +            cnt = 1 +            temp_S = s[i] +    l.append((temp_S, cnt)) +    return l + + +l = comp() -index_num = -1 -for i in range(len(l)): -    s, num = l[i] -    if i == 0 and s == "L": -        ans[0] = num -        index_num += num -    if s == "R": -        index_num += num -        ans[index_num] += (num - 1) // 2 + 1 -        ans[index_num + 1] += num // 2 -    else: -        ans[index_num + 1] += (num - 1) // 2 + 1 -        ans[index_num] += num // 2 -        index_num += num -    # print(ans,index_num) +next_s = "R" +cnt = 0 +for x, y in l: +    if cnt == 0 and x == "L": +        ans[0] = y +        cnt += y +    if x == "R": +        cnt += y +        ans[cnt - 1] += (y + 1) // 2 +        ans[cnt] += y - (y + 1) // 2 +    elif x == "L": +        ans[cnt] += (y + 1) // 2 +        ans[cnt - 1] += y - (y + 1) // 2 +        cnt += y