S = input()

S = S + "R"

odd_count = 0

even_count = 0

ans = [0] * len(S)

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

    if i % 2 == 0:

        even_count += 1

    else:

        odd_count += 1

    if S[i] == 'R' and S[i + 1] == 'L':

        right_index = i + 1

        left_index = i

        start = i

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

        if start % 2 == 1:

            ans[left_index] = odd_count

            ans[right_index] = even_count

        else:

            ans[left_index] = even_count

            ans[right_index] = odd_count

        odd_count = 0

        even_count = 0

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

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

S = eval(input())

len_S = len(S)

now = "R"

R_cnt = 0

L_cnt = 0

ans = [0] * len_S

R_idx_list = []

L_idx_list = []

for i in range(len_S - 1):

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

        R_idx_list.append(i)

        L_idx_list.append(i + 1)





idx = 0

for i in range(len(S)):

    s = S[i]

    if i == len_S - 1:

        L_cnt += 1

    if now == "L" and s == "R" or i == len_S - 1:

        ans[R_idx_list[idx]] = R_cnt - R_cnt // 2 + L_cnt // 2

        ans[L_idx_list[idx]] = L_cnt - L_cnt // 2 + R_cnt // 2

        idx += 1

        R_cnt = 0

        L_cnt = 0

    if s == "R":

        now = "R"

        R_cnt += 1

    else:

        now = "L"

        L_cnt += 1

print((*ans))
S = input()
S = S + "R"
odd_count = 0
even_count = 0
ans = [0] * len(S)
for i in range(len(S) - 1):
    if i % 2 == 0:
        even_count += 1
    else:
        odd_count += 1
    if S[i] == "R" and S[i + 1] == "L":
        right_index = i + 1
        left_index = i
        start = i
    if S[i] == "L" and S[i + 1] == "R":
        if start % 2 == 1:
            ans[left_index] = odd_count
            ans[right_index] = even_count
        else:
            ans[left_index] = even_count
            ans[right_index] = odd_count
        odd_count = 0
        even_count = 0
for i in range(len(S) - 1):
    print(ans[i], end=" ")

S = eval(input())
len_S = len(S)
now = "R"
R_cnt = 0
L_cnt = 0
ans = [0] * len_S
R_idx_list = []
L_idx_list = []
for i in range(len_S - 1):
    if S[i] == "R" and S[i + 1] == "L":
        R_idx_list.append(i)
        L_idx_list.append(i + 1)
idx = 0
for i in range(len(S)):
    s = S[i]
    if i == len_S - 1:
        L_cnt += 1
    if now == "L" and s == "R" or i == len_S - 1:
        ans[R_idx_list[idx]] = R_cnt - R_cnt // 2 + L_cnt // 2
        ans[L_idx_list[idx]] = L_cnt - L_cnt // 2 + R_cnt // 2
        idx += 1
        R_cnt = 0
        L_cnt = 0
    if s == "R":
        now = "R"
        R_cnt += 1
    else:
        now = "L"
        L_cnt += 1
print((*ans))

-S = input() -S = S + "R" -odd_count = 0 -even_count = 0 -ans = [0] * len(S) -for i in range(len(S) - 1): -    if i % 2 == 0: -        even_count += 1 +S = eval(input()) +len_S = len(S) +now = "R" +R_cnt = 0 +L_cnt = 0 +ans = [0] * len_S +R_idx_list = [] +L_idx_list = [] +for i in range(len_S - 1): +    if S[i] == "R" and S[i + 1] == "L": +        R_idx_list.append(i) +        L_idx_list.append(i + 1) +idx = 0 +for i in range(len(S)): +    s = S[i] +    if i == len_S - 1: +        L_cnt += 1 +    if now == "L" and s == "R" or i == len_S - 1: +        ans[R_idx_list[idx]] = R_cnt - R_cnt // 2 + L_cnt // 2 +        ans[L_idx_list[idx]] = L_cnt - L_cnt // 2 + R_cnt // 2 +        idx += 1 +        R_cnt = 0 +        L_cnt = 0 +    if s == "R": +        now = "R" +        R_cnt += 1 -        odd_count += 1 -    if S[i] == "R" and S[i + 1] == "L": -        right_index = i + 1 -        left_index = i -        start = i -    if S[i] == "L" and S[i + 1] == "R": -        if start % 2 == 1: -            ans[left_index] = odd_count -            ans[right_index] = even_count -        else: -            ans[left_index] = even_count -            ans[right_index] = odd_count -        odd_count = 0 -        even_count = 0 -for i in range(len(S) - 1): -    print(ans[i], end=" ") +        now = "L" +        L_cnt += 1 +print((*ans))