s = list(eval(input()))



ans = [0] * len(s)



cnt = 0

r_temp = 0

l_temp = 0

temp = "R"



for i in range(len(s)):

    if temp != s[i] and temp == "R":

        r_temp = cnt

        cnt = 0

        temp = "L"

    if temp != s[i] and temp == "L":

        l_temp = cnt

        cnt = 0

        temp = "R"

        

        if (r_temp-l_temp)%2 == 0:

            ans[i-l_temp] = (r_temp+l_temp)//2

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

        elif r_temp > l_temp:

            if r_temp%2 == 0:

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

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

            else:

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

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

        elif r_temp < l_temp:

            if l_temp%2 == 0:

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

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

            else:

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

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

            

    if i == len(s)-1:

        l_temp = cnt + 1

        #print(r_temp)

        #print(cnt)

        if (r_temp-l_temp)%2 == 0:

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

            ans[i-l_temp] = (r_temp+l_temp)//2

        elif r_temp > l_temp:

            if r_temp%2 == 0:

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

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

            else:

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

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

        elif r_temp < l_temp:

            if l_temp%2 == 0:

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

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

            else:

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

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

        

    cnt += 1

        

        



print((*ans))



s = eval(input())



res = [0] * len(s)

cnt_r = 0

cnt_l = 0

curr = "R"

last_idx = 0



for idx, char in enumerate(s):

    if curr == "R":

        if char == "R":

            cnt_r += 1

            continue

        else:

            res[idx] += cnt_r // 2

            res[idx - 1] += (cnt_r - cnt_r // 2)

            last_idx = idx

            curr = "L"

            cnt_r = 0

            cnt_l = 1

            continue

    else:

        if char == "L":

            cnt_l += 1

            continue

        else:

            res[last_idx - 1] += cnt_l // 2

            res[last_idx] += cnt_l - (cnt_l // 2)

            curr = "R"

            cnt_l = 0

            cnt_r = 1



res[last_idx - 1] += cnt_l // 2

res[last_idx] += cnt_l - (cnt_l // 2)



print((*res))
s = list(eval(input()))
ans = [0] * len(s)
cnt = 0
r_temp = 0
l_temp = 0
temp = "R"
for i in range(len(s)):
    if temp != s[i] and temp == "R":
        r_temp = cnt
        cnt = 0
        temp = "L"
    if temp != s[i] and temp == "L":
        l_temp = cnt
        cnt = 0
        temp = "R"
        if (r_temp - l_temp) % 2 == 0:
            ans[i - l_temp] = (r_temp + l_temp) // 2
            ans[i - l_temp - 1] = (r_temp + l_temp) // 2
        elif r_temp > l_temp:
            if r_temp % 2 == 0:
                ans[i - l_temp] = ((r_temp + l_temp - 1) // 2) + 1
                ans[i - l_temp - 1] = (r_temp + l_temp - 1) // 2
            else:
                ans[i - l_temp] = (r_temp + l_temp - 1) // 2
                ans[i - l_temp - 1] = ((r_temp + l_temp - 1) // 2) + 1
        elif r_temp < l_temp:
            if l_temp % 2 == 0:
                ans[i - l_temp] = (r_temp + l_temp - 1) // 2
                ans[i - l_temp - 1] = ((r_temp + l_temp - 1) // 2) + 1
            else:
                ans[i - l_temp] = ((r_temp + l_temp - 1) // 2) + 1
                ans[i - l_temp - 1] = (r_temp + l_temp - 1) // 2
    if i == len(s) - 1:
        l_temp = cnt + 1
        # print(r_temp)
        # print(cnt)
        if (r_temp - l_temp) % 2 == 0:
            ans[i - l_temp + 1] = (r_temp + l_temp) // 2
            ans[i - l_temp] = (r_temp + l_temp) // 2
        elif r_temp > l_temp:
            if r_temp % 2 == 0:
                ans[i - l_temp + 1] = ((r_temp + l_temp - 1) // 2) + 1
                ans[i - l_temp] = (r_temp + l_temp - 1) // 2
            else:
                ans[i - l_temp + 1] = (r_temp + l_temp - 1) // 2
                ans[i - l_temp] = ((r_temp + l_temp - 1) // 2) + 1
        elif r_temp < l_temp:
            if l_temp % 2 == 0:
                ans[i - l_temp + 1] = (r_temp + l_temp - 1) // 2
                ans[i - l_temp] = ((r_temp + l_temp - 1) // 2) + 1
            else:
                ans[i - l_temp + 1] = ((r_temp + l_temp - 1) // 2) + 1
                ans[i - l_temp] = (r_temp + l_temp - 1) // 2
    cnt += 1
print((*ans))

s = eval(input())
res = [0] * len(s)
cnt_r = 0
cnt_l = 0
curr = "R"
last_idx = 0
for idx, char in enumerate(s):
    if curr == "R":
        if char == "R":
            cnt_r += 1
            continue
        else:
            res[idx] += cnt_r // 2
            res[idx - 1] += cnt_r - cnt_r // 2
            last_idx = idx
            curr = "L"
            cnt_r = 0
            cnt_l = 1
            continue
    else:
        if char == "L":
            cnt_l += 1
            continue
        else:
            res[last_idx - 1] += cnt_l // 2
            res[last_idx] += cnt_l - (cnt_l // 2)
            curr = "R"
            cnt_l = 0
            cnt_r = 1
res[last_idx - 1] += cnt_l // 2
res[last_idx] += cnt_l - (cnt_l // 2)
print((*res))

-s = list(eval(input())) -ans = [0] * len(s) -cnt = 0 -r_temp = 0 -l_temp = 0 -temp = "R" -for i in range(len(s)): -    if temp != s[i] and temp == "R": -        r_temp = cnt -        cnt = 0 -        temp = "L" -    if temp != s[i] and temp == "L": -        l_temp = cnt -        cnt = 0 -        temp = "R" -        if (r_temp - l_temp) % 2 == 0: -            ans[i - l_temp] = (r_temp + l_temp) // 2 -            ans[i - l_temp - 1] = (r_temp + l_temp) // 2 -        elif r_temp > l_temp: -            if r_temp % 2 == 0: -                ans[i - l_temp] = ((r_temp + l_temp - 1) // 2) + 1 -                ans[i - l_temp - 1] = (r_temp + l_temp - 1) // 2 -            else: -                ans[i - l_temp] = (r_temp + l_temp - 1) // 2 -                ans[i - l_temp - 1] = ((r_temp + l_temp - 1) // 2) + 1 -        elif r_temp < l_temp: -            if l_temp % 2 == 0: -                ans[i - l_temp] = (r_temp + l_temp - 1) // 2 -                ans[i - l_temp - 1] = ((r_temp + l_temp - 1) // 2) + 1 -            else: -                ans[i - l_temp] = ((r_temp + l_temp - 1) // 2) + 1 -                ans[i - l_temp - 1] = (r_temp + l_temp - 1) // 2 -    if i == len(s) - 1: -        l_temp = cnt + 1 -        # print(r_temp) -        # print(cnt) -        if (r_temp - l_temp) % 2 == 0: -            ans[i - l_temp + 1] = (r_temp + l_temp) // 2 -            ans[i - l_temp] = (r_temp + l_temp) // 2 -        elif r_temp > l_temp: -            if r_temp % 2 == 0: -                ans[i - l_temp + 1] = ((r_temp + l_temp - 1) // 2) + 1 -                ans[i - l_temp] = (r_temp + l_temp - 1) // 2 -            else: -                ans[i - l_temp + 1] = (r_temp + l_temp - 1) // 2 -                ans[i - l_temp] = ((r_temp + l_temp - 1) // 2) + 1 -        elif r_temp < l_temp: -            if l_temp % 2 == 0: -                ans[i - l_temp + 1] = (r_temp + l_temp - 1) // 2 -                ans[i - l_temp] = ((r_temp + l_temp - 1) // 2) + 1 -            else: -                ans[i - l_temp + 1] = ((r_temp + l_temp - 1) // 2) + 1 -                ans[i - l_temp] = (r_temp + l_temp - 1) // 2 -    cnt += 1 -print((*ans)) +s = eval(input()) +res = [0] * len(s) +cnt_r = 0 +cnt_l = 0 +curr = "R" +last_idx = 0 +for idx, char in enumerate(s): +    if curr == "R": +        if char == "R": +            cnt_r += 1 +            continue +        else: +            res[idx] += cnt_r // 2 +            res[idx - 1] += cnt_r - cnt_r // 2 +            last_idx = idx +            curr = "L" +            cnt_r = 0 +            cnt_l = 1 +            continue +    else: +        if char == "L": +            cnt_l += 1 +            continue +        else: +            res[last_idx - 1] += cnt_l // 2 +            res[last_idx] += cnt_l - (cnt_l // 2) +            curr = "R" +            cnt_l = 0 +            cnt_r = 1 +res[last_idx - 1] += cnt_l // 2 +res[last_idx] += cnt_l - (cnt_l // 2) +print((*res))