# ABC136d

import sys

import re

import math

input = sys.stdin.readline

sys.setrecursionlimit(10**6)



s = eval(input())

l = re.findall("R+L+", s)

ans = []



# print(l)



for i in l:

    R = math.ceil((i.count("R")-1)/2) + math.ceil(i.count("L")/2)

    L = math.ceil(i.count("R")/2) + math.ceil((i.count("L")-1)/2)

    #print(i, R, L)

    for j in range(len(i)):

        if (i[j] == "R" and i[j + 1] == "L"):

            ans.append(L)

            ans.append(R)

            j += 1

        elif(not(i[j] == "L" and i[j - 1] == "R")):

            ans.append(0)

print((*ans))

def main():

    import sys

    import math

    input = sys.stdin.readline

    sys.setrecursionlimit(10**6)

    # map(int, input().split())



    s = input()[:-1]

    sakai = s.replace('RL', 'R,L').split(',')

    kodomo = [0] * (len(s)+1)

    pos = [0] * (len(sakai)+1)

    for i in range(len(sakai)):

        seq = sakai[i]

        pos[i + 1] = len(seq)+pos[i]

    for i in range(len(sakai)):

        seq = sakai[i]

        kodomo[pos[i + 1]-1] += (seq.count('R')+1) // 2  # 相手の左端にいる

        kodomo[pos[i + 1]] += seq.count('R') // 2  # 自分の右端にいる

        kodomo[pos[i]] += (seq.count('L')+1) // 2

        kodomo[pos[i] - 1] += seq.count('L') // 2

        # print(kodomo)

    # print(sakai)

    # print(pos)

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





if __name__ == '__main__':

    main()

# ABC136d
import sys
import re
import math

input = sys.stdin.readline
sys.setrecursionlimit(10**6)
s = eval(input())
l = re.findall("R+L+", s)
ans = []
# print(l)
for i in l:
    R = math.ceil((i.count("R") - 1) / 2) + math.ceil(i.count("L") / 2)
    L = math.ceil(i.count("R") / 2) + math.ceil((i.count("L") - 1) / 2)
    # print(i, R, L)
    for j in range(len(i)):
        if i[j] == "R" and i[j + 1] == "L":
            ans.append(L)
            ans.append(R)
            j += 1
        elif not (i[j] == "L" and i[j - 1] == "R"):
            ans.append(0)
print((*ans))

def main():
    import sys
    import math

    input = sys.stdin.readline
    sys.setrecursionlimit(10**6)
    # map(int, input().split())
    s = input()[:-1]
    sakai = s.replace("RL", "R,L").split(",")
    kodomo = [0] * (len(s) + 1)
    pos = [0] * (len(sakai) + 1)
    for i in range(len(sakai)):
        seq = sakai[i]
        pos[i + 1] = len(seq) + pos[i]
    for i in range(len(sakai)):
        seq = sakai[i]
        kodomo[pos[i + 1] - 1] += (seq.count("R") + 1) // 2  # 相手の左端にいる
        kodomo[pos[i + 1]] += seq.count("R") // 2  # 自分の右端にいる
        kodomo[pos[i]] += (seq.count("L") + 1) // 2
        kodomo[pos[i] - 1] += seq.count("L") // 2
        # print(kodomo)
    # print(sakai)
    # print(pos)
    print((*kodomo[:-1]))


if __name__ == "__main__":
    main()

-# ABC136d -import sys -import re -import math +def main(): +    import sys +    import math -input = sys.stdin.readline -sys.setrecursionlimit(10**6) -s = eval(input()) -l = re.findall("R+L+", s) -ans = [] -# print(l) -for i in l: -    R = math.ceil((i.count("R") - 1) / 2) + math.ceil(i.count("L") / 2) -    L = math.ceil(i.count("R") / 2) + math.ceil((i.count("L") - 1) / 2) -    # print(i, R, L) -    for j in range(len(i)): -        if i[j] == "R" and i[j + 1] == "L": -            ans.append(L) -            ans.append(R) -            j += 1 -        elif not (i[j] == "L" and i[j - 1] == "R"): -            ans.append(0) -print((*ans)) +    input = sys.stdin.readline +    sys.setrecursionlimit(10**6) +    # map(int, input().split()) +    s = input()[:-1] +    sakai = s.replace("RL", "R,L").split(",") +    kodomo = [0] * (len(s) + 1) +    pos = [0] * (len(sakai) + 1) +    for i in range(len(sakai)): +        seq = sakai[i] +        pos[i + 1] = len(seq) + pos[i] +    for i in range(len(sakai)): +        seq = sakai[i] +        kodomo[pos[i + 1] - 1] += (seq.count("R") + 1) // 2  # 相手の左端にいる +        kodomo[pos[i + 1]] += seq.count("R") // 2  # 自分の右端にいる +        kodomo[pos[i]] += (seq.count("L") + 1) // 2 +        kodomo[pos[i] - 1] += seq.count("L") // 2 +        # print(kodomo) +    # print(sakai) +    # print(pos) +    print((*kodomo[:-1])) + + +if __name__ == "__main__": +    main()