"""

各人についての移動回数

偶数 -> 状態同じ

奇数 -> 一回移動

"""

S = [False if s == "L" else True for s in eval(input())]

N = len(S)



from collections import deque



F_idx = deque([idx for idx in range(N) if not S[idx]])

T_idx = deque([idx for idx in range(N) if S[idx]])



state = [0] * N

# ->

for i in range(N):

    if S[i]:

        if (F_idx[0] - i) % 2 == 0:

            state[F_idx[0]] += 1

        else:

            state[F_idx[0] - 1] += 1

    if i == F_idx[0]:

        F_idx.popleft()



# <-

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

    if not S[i]:

        if abs(T_idx[-1] - i) % 2 == 0:

            state[T_idx[-1]] += 1

        else:

            state[T_idx[-1] + 1] += 1

    if i == T_idx[-1]:

        T_idx.pop()



print((*state))
S = list(input())



cnt = [0] * len(S)



R = []

for i,s in enumerate(S):

    if s == "L":

        for r in R:

            if (i - r) % 2 == 0:

                cnt[i] += 1

            else:

                cnt[i-1] += 1

        R = []

    else:

        R.append(i)



L = []

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

    s = S[i]

    if s == "R":

        for l in L:

            if (l - i) % 2 == 0:

                cnt[i] += 1

            else:

                cnt[i+1] += 1

        L = []

    else:

        L.append(i)



print(*cnt,sep=" ")

"""
各人についての移動回数
偶数 -> 状態同じ
奇数 -> 一回移動
"""
S = [False if s == "L" else True for s in eval(input())]
N = len(S)
from collections import deque

F_idx = deque([idx for idx in range(N) if not S[idx]])
T_idx = deque([idx for idx in range(N) if S[idx]])
state = [0] * N
# ->
for i in range(N):
    if S[i]:
        if (F_idx[0] - i) % 2 == 0:
            state[F_idx[0]] += 1
        else:
            state[F_idx[0] - 1] += 1
    if i == F_idx[0]:
        F_idx.popleft()
# <-
for i in range(N - 1, -1, -1):
    if not S[i]:
        if abs(T_idx[-1] - i) % 2 == 0:
            state[T_idx[-1]] += 1
        else:
            state[T_idx[-1] + 1] += 1
    if i == T_idx[-1]:
        T_idx.pop()
print((*state))

S = list(input())
cnt = [0] * len(S)
R = []
for i, s in enumerate(S):
    if s == "L":
        for r in R:
            if (i - r) % 2 == 0:
                cnt[i] += 1
            else:
                cnt[i - 1] += 1
        R = []
    else:
        R.append(i)
L = []
for i in range(len(S) - 1, -1, -1):
    s = S[i]
    if s == "R":
        for l in L:
            if (l - i) % 2 == 0:
                cnt[i] += 1
            else:
                cnt[i + 1] += 1
        L = []
    else:
        L.append(i)
print(*cnt, sep=" ")

-""" -各人についての移動回数 -偶数 -> 状態同じ -奇数 -> 一回移動 -""" -S = [False if s == "L" else True for s in eval(input())] -N = len(S) -from collections import deque - -F_idx = deque([idx for idx in range(N) if not S[idx]]) -T_idx = deque([idx for idx in range(N) if S[idx]]) -state = [0] * N -# -> -for i in range(N): -    if S[i]: -        if (F_idx[0] - i) % 2 == 0: -            state[F_idx[0]] += 1 -        else: -            state[F_idx[0] - 1] += 1 -    if i == F_idx[0]: -        F_idx.popleft() -# <- -for i in range(N - 1, -1, -1): -    if not S[i]: -        if abs(T_idx[-1] - i) % 2 == 0: -            state[T_idx[-1]] += 1 -        else: -            state[T_idx[-1] + 1] += 1 -    if i == T_idx[-1]: -        T_idx.pop() -print((*state)) +S = list(input()) +cnt = [0] * len(S) +R = [] +for i, s in enumerate(S): +    if s == "L": +        for r in R: +            if (i - r) % 2 == 0: +                cnt[i] += 1 +            else: +                cnt[i - 1] += 1 +        R = [] +    else: +        R.append(i) +L = [] +for i in range(len(S) - 1, -1, -1): +    s = S[i] +    if s == "R": +        for l in L: +            if (l - i) % 2 == 0: +                cnt[i] += 1 +            else: +                cnt[i + 1] += 1 +        L = [] +    else: +        L.append(i) +print(*cnt, sep=" ")