def inpl(): return list(map(int, input().split()))



S = eval(input())

N = len(S)



R = [0]*N

L = [0]*N





for i in range(N-2, -1, -1):

    r = int(S[i] == "R")

    R[i] = R[i+1]*r + r



for i in range(1, N):

    l = int(S[i] == "L")

    L[i] = L[i-1]*l + l



X = [0]*N

for i in range(N):

    if S[i] == "R":

        X[i+R[i]-R[i]%2] += 1

    else:

        X[i-L[i]+L[i]%2] += 1



print((*X))
# -*- coding: utf-8 -*-



from collections import defaultdict, Counter

from string import ascii_lowercase as abc

def inpl(): return list(map(int, input().split()))



S = eval(input())

N = len(S)



R = [0]*N

L = [0]*N

R[0] = 1

L[-1] = 1



for i in range(1, N):

    x = S[i] == "L"

    L[i] = L[i-1]*x + x



for i in range(N-2, -1, -1):

    x = S[i] == "R"

    R[i] = R[i+1]*x + x



ans = [0]*N

for i in range(N):

    if S[i] == "R":

        ans[i+R[i]-R[i]%2] += 1

    else:

        ans[i-L[i]+L[i]%2] += 1



print((*ans))
def inpl():
    return list(map(int, input().split()))


S = eval(input())
N = len(S)
R = [0] * N
L = [0] * N
for i in range(N - 2, -1, -1):
    r = int(S[i] == "R")
    R[i] = R[i + 1] * r + r
for i in range(1, N):
    l = int(S[i] == "L")
    L[i] = L[i - 1] * l + l
X = [0] * N
for i in range(N):
    if S[i] == "R":
        X[i + R[i] - R[i] % 2] += 1
    else:
        X[i - L[i] + L[i] % 2] += 1
print((*X))

# -*- coding: utf-8 -*-
from collections import defaultdict, Counter
from string import ascii_lowercase as abc


def inpl():
    return list(map(int, input().split()))


S = eval(input())
N = len(S)
R = [0] * N
L = [0] * N
R[0] = 1
L[-1] = 1
for i in range(1, N):
    x = S[i] == "L"
    L[i] = L[i - 1] * x + x
for i in range(N - 2, -1, -1):
    x = S[i] == "R"
    R[i] = R[i + 1] * x + x
ans = [0] * N
for i in range(N):
    if S[i] == "R":
        ans[i + R[i] - R[i] % 2] += 1
    else:
        ans[i - L[i] + L[i] % 2] += 1
print((*ans))

+# -*- coding: utf-8 -*- +from collections import defaultdict, Counter +from string import ascii_lowercase as abc + + +R[0] = 1 +L[-1] = 1 +for i in range(1, N): +    x = S[i] == "L" +    L[i] = L[i - 1] * x + x -    r = int(S[i] == "R") -    R[i] = R[i + 1] * r + r -for i in range(1, N): -    l = int(S[i] == "L") -    L[i] = L[i - 1] * l + l -X = [0] * N +    x = S[i] == "R" +    R[i] = R[i + 1] * x + x +ans = [0] * N -        X[i + R[i] - R[i] % 2] += 1 +        ans[i + R[i] - R[i] % 2] += 1 -        X[i - L[i] + L[i] % 2] += 1 -print((*X)) +        ans[i - L[i] + L[i] % 2] += 1 +print((*ans))