import math



s = input()

ans = [0]*len(s)

cnt = 0

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

    if "R" in s[i]:

        cnt += 1

        if "L" in s[i+1]:

            ans[i+1] += math.ceil(cnt/2)

            ans[i] += math.ceil(cnt/2)

            if cnt%2 == 0:

                ans[i+1] += 1

            cnt = 0

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

    if "L" in s[i]:

        cnt += 1

        if "R" in s[i-1]:

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

            ans[i] += math.ceil(cnt/2)

            if cnt%2 == 0:

                ans[i-1] += 1

            cnt = 0

for i in range(len(s)):

    if ans[i] != 0:

        ans[i] -= 1

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

import sys

read = sys.stdin.buffer.read

readline = sys.stdin.buffer.readline

readlines = sys.stdin.buffer.readlines

sys.setrecursionlimit(10 ** 7)



s = read().rstrip().decode()

cnt = 0

ans = [0] * len(s)

for i, ss in enumerate(s):

    if ss == 'L':

        ans[i] += cnt // 2

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

        if cnt % 2 == 1:

            ans[i - 1] += 1

        cnt = 0

    else:

        cnt += 1

ans = ans[::-1]

for i, ss in enumerate(s[::-1]):

    if ss == 'R':

        ans[i] += cnt // 2

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

        if cnt % 2 == 1:

            ans[i - 1] += 1

        cnt = 0

    else:

        cnt += 1

print((*ans[::-1]))

import math

s = input()
ans = [0] * len(s)
cnt = 0
for i in range(len(s) - 1):
    if "R" in s[i]:
        cnt += 1
        if "L" in s[i + 1]:
            ans[i + 1] += math.ceil(cnt / 2)
            ans[i] += math.ceil(cnt / 2)
            if cnt % 2 == 0:
                ans[i + 1] += 1
            cnt = 0
for i in range(len(s) - 1, 0, -1):
    if "L" in s[i]:
        cnt += 1
        if "R" in s[i - 1]:
            ans[i - 1] += math.ceil(cnt / 2)
            ans[i] += math.ceil(cnt / 2)
            if cnt % 2 == 0:
                ans[i - 1] += 1
            cnt = 0
for i in range(len(s)):
    if ans[i] != 0:
        ans[i] -= 1
    print(ans[i], end=" ")

import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10**7)
s = read().rstrip().decode()
cnt = 0
ans = [0] * len(s)
for i, ss in enumerate(s):
    if ss == "L":
        ans[i] += cnt // 2
        ans[i - 1] += cnt // 2
        if cnt % 2 == 1:
            ans[i - 1] += 1
        cnt = 0
    else:
        cnt += 1
ans = ans[::-1]
for i, ss in enumerate(s[::-1]):
    if ss == "R":
        ans[i] += cnt // 2
        ans[i - 1] += cnt // 2
        if cnt % 2 == 1:
            ans[i - 1] += 1
        cnt = 0
    else:
        cnt += 1
print((*ans[::-1]))

-import math +import sys -s = input() +read = sys.stdin.buffer.read +readline = sys.stdin.buffer.readline +readlines = sys.stdin.buffer.readlines +sys.setrecursionlimit(10**7) +s = read().rstrip().decode() +cnt = 0 -cnt = 0 -for i in range(len(s) - 1): -    if "R" in s[i]: +for i, ss in enumerate(s): +    if ss == "L": +        ans[i] += cnt // 2 +        ans[i - 1] += cnt // 2 +        if cnt % 2 == 1: +            ans[i - 1] += 1 +        cnt = 0 +    else: -        if "L" in s[i + 1]: -            ans[i + 1] += math.ceil(cnt / 2) -            ans[i] += math.ceil(cnt / 2) -            if cnt % 2 == 0: -                ans[i + 1] += 1 -            cnt = 0 -for i in range(len(s) - 1, 0, -1): -    if "L" in s[i]: +ans = ans[::-1] +for i, ss in enumerate(s[::-1]): +    if ss == "R": +        ans[i] += cnt // 2 +        ans[i - 1] += cnt // 2 +        if cnt % 2 == 1: +            ans[i - 1] += 1 +        cnt = 0 +    else: -        if "R" in s[i - 1]: -            ans[i - 1] += math.ceil(cnt / 2) -            ans[i] += math.ceil(cnt / 2) -            if cnt % 2 == 0: -                ans[i - 1] += 1 -            cnt = 0 -for i in range(len(s)): -    if ans[i] != 0: -        ans[i] -= 1 -    print(ans[i], end=" ") +print((*ans[::-1]))