s = input()

lst = [0 for _ in range(len(s))]



count = 0

num_lst = []

lr = "R"

for i in s:

    if i == lr:

        count += 1

    else:

        num_lst.append(count)

        count = 1

        lr = i

num_lst.append(count)



count = 0

for i, num in enumerate(num_lst):

    if i % 2 == 0:

        count += num

        lst[count - 1] += (num + 1) // 2

        lst[count] += num // 2

    else:

        lst[count - 1] += num // 2

        lst[count] += (num + 1) // 2

        count += num

for num in lst:

    print(num, end=" ")

string = eval(input())

r_cnt = 0

l_cnt = 0

flg = False

ans = [0 for _ in range(len(string))]

for i, s in enumerate(string):

    if s == "R":

        if flg:

            ans[pos - 1] += l_cnt // 2

            ans[pos] += (l_cnt + 1) // 2

            l_cnt = 0

            flg = False

        r_cnt += 1

    else:

        if not flg:

            pos = i

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

            ans[i] += r_cnt // 2

            r_cnt = 0

            flg = True

        l_cnt += 1

ans[pos - 1] += l_cnt // 2

ans[pos] += (l_cnt + 1) // 2



print((*ans))
s = input()
lst = [0 for _ in range(len(s))]
count = 0
num_lst = []
lr = "R"
for i in s:
    if i == lr:
        count += 1
    else:
        num_lst.append(count)
        count = 1
        lr = i
num_lst.append(count)
count = 0
for i, num in enumerate(num_lst):
    if i % 2 == 0:
        count += num
        lst[count - 1] += (num + 1) // 2
        lst[count] += num // 2
    else:
        lst[count - 1] += num // 2
        lst[count] += (num + 1) // 2
        count += num
for num in lst:
    print(num, end=" ")

string = eval(input())
r_cnt = 0
l_cnt = 0
flg = False
ans = [0 for _ in range(len(string))]
for i, s in enumerate(string):
    if s == "R":
        if flg:
            ans[pos - 1] += l_cnt // 2
            ans[pos] += (l_cnt + 1) // 2
            l_cnt = 0
            flg = False
        r_cnt += 1
    else:
        if not flg:
            pos = i
            ans[i - 1] += (r_cnt + 1) // 2
            ans[i] += r_cnt // 2
            r_cnt = 0
            flg = True
        l_cnt += 1
ans[pos - 1] += l_cnt // 2
ans[pos] += (l_cnt + 1) // 2
print((*ans))

-s = input() -lst = [0 for _ in range(len(s))] -count = 0 -num_lst = [] -lr = "R" -for i in s: -    if i == lr: -        count += 1 +string = eval(input()) +r_cnt = 0 +l_cnt = 0 +flg = False +ans = [0 for _ in range(len(string))] +for i, s in enumerate(string): +    if s == "R": +        if flg: +            ans[pos - 1] += l_cnt // 2 +            ans[pos] += (l_cnt + 1) // 2 +            l_cnt = 0 +            flg = False +        r_cnt += 1 -        num_lst.append(count) -        count = 1 -        lr = i -num_lst.append(count) -count = 0 -for i, num in enumerate(num_lst): -    if i % 2 == 0: -        count += num -        lst[count - 1] += (num + 1) // 2 -        lst[count] += num // 2 -    else: -        lst[count - 1] += num // 2 -        lst[count] += (num + 1) // 2 -        count += num -for num in lst: -    print(num, end=" ") +        if not flg: +            pos = i +            ans[i - 1] += (r_cnt + 1) // 2 +            ans[i] += r_cnt // 2 +            r_cnt = 0 +            flg = True +        l_cnt += 1 +ans[pos - 1] += l_cnt // 2 +ans[pos] += (l_cnt + 1) // 2 +print((*ans))