import math

import numpy as np



S = eval(input())

ans = np.zeros((len(S)), dtype=np.int)

count = idx = i = 0



while i < len(S):

    if S[i:i+2] == 'RL':

        idx = i

        ans[idx:idx+2] += [count//2+1, math.ceil(count/2)+1]

        i += 2

        count = 0

    elif S[i:i+2] == 'LR':

        count += 1

        ans[idx:idx+2] += [math.ceil(count/2), count//2]

        count = 0

        i += 1

    else:

        count += 1

        i += 1



ans[idx:idx+2] += [math.ceil(count/2), count//2]



print((' '.join(map(str, ans))))
import math



S = eval(input())

ans = [0 for i in range(len(S))]

count = idx = i = 0



while i < len(S):

    if S[i:i+2] == 'RL':

        idx = i

        ans[idx] += count//2+1

        ans[idx+1] += math.ceil(count/2)+1

        i += 2

        count = 0

    elif S[i:i+2] == 'LR':

        count += 1

        ans[idx] += math.ceil(count/2)

        ans[idx+1] += count//2

        count = 0

        i += 1

    else:

        count += 1

        i += 1



ans[idx] += math.ceil(count/2)

ans[idx+1] += count//2

print((' '.join(map(str, ans))))
import math
import numpy as np

S = eval(input())
ans = np.zeros((len(S)), dtype=np.int)
count = idx = i = 0
while i < len(S):
    if S[i : i + 2] == "RL":
        idx = i
        ans[idx : idx + 2] += [count // 2 + 1, math.ceil(count / 2) + 1]
        i += 2
        count = 0
    elif S[i : i + 2] == "LR":
        count += 1
        ans[idx : idx + 2] += [math.ceil(count / 2), count // 2]
        count = 0
        i += 1
    else:
        count += 1
        i += 1
ans[idx : idx + 2] += [math.ceil(count / 2), count // 2]
print((" ".join(map(str, ans))))

import math

S = eval(input())
ans = [0 for i in range(len(S))]
count = idx = i = 0
while i < len(S):
    if S[i : i + 2] == "RL":
        idx = i
        ans[idx] += count // 2 + 1
        ans[idx + 1] += math.ceil(count / 2) + 1
        i += 2
        count = 0
    elif S[i : i + 2] == "LR":
        count += 1
        ans[idx] += math.ceil(count / 2)
        ans[idx + 1] += count // 2
        count = 0
        i += 1
    else:
        count += 1
        i += 1
ans[idx] += math.ceil(count / 2)
ans[idx + 1] += count // 2
print((" ".join(map(str, ans))))

-import numpy as np -ans = np.zeros((len(S)), dtype=np.int) +ans = [0 for i in range(len(S))] -        ans[idx : idx + 2] += [count // 2 + 1, math.ceil(count / 2) + 1] +        ans[idx] += count // 2 + 1 +        ans[idx + 1] += math.ceil(count / 2) + 1 -        ans[idx : idx + 2] += [math.ceil(count / 2), count // 2] +        ans[idx] += math.ceil(count / 2) +        ans[idx + 1] += count // 2 -ans[idx : idx + 2] += [math.ceil(count / 2), count // 2] +ans[idx] += math.ceil(count / 2) +ans[idx + 1] += count // 2