#!/usr/bin/env python3

import sys

from math import log2



ROUND = 10 ** 5

LOG = 33#int(log2(ROUND))



def main():

    S = eval(input())

    N = len(S)

    to = []

    for _ in range(LOG):

        l = [0] * N

        to.append(l)

    

    for i in range(N):

        to[0][i] = i + 1 if S[i] == "R" else i - 1

    

    for i in range(1, LOG):

        for j in range(N):

            to[i][j] = to[i - 1][to[i - 1][j]]



    a = []

    for i in range(LOG):

        if ROUND>>i & 1:

            a.append(i)



    ans = [0] * N

    for j in range(N):

        now = j

        for i in a:

            now = to[i][now]

        ans[now] += 1



    L = [str(i) for i in ans]

    print((" ".join(L)))

    return



if __name__ == '__main__':

    main()
#!/usr/bin/env python3

import sys

from math import log2



ROUND = 10 ** 5

LOG = 18#int(log2(ROUND))



def test():

    print((len(format(ROUND, "b"))))



def main():

    #test()

    #return 





    S = eval(input())

    #S = "R" * (10 ** 5 - 1) + "L"

    N = len(S)

    to = []

    for _ in range(LOG):

        l = [0] * N

        to.append(l)

    

    for i in range(N):

        to[0][i] = i + 1 if S[i] == "R" else i - 1

    

    for i in range(1, LOG):

        for j in range(N):

            to[i][j] = to[i - 1][to[i - 1][j]]



    ans = [0] * N

    for j in range(N):

        ans[to[LOG - 1][j]] += 1



    L = [str(i) for i in ans]

    print((" ".join(L)))

    return





if __name__ == '__main__':

    main()
#!/usr/bin/env python3
import sys
from math import log2

ROUND = 10**5
LOG = 33  # int(log2(ROUND))


def main():
    S = eval(input())
    N = len(S)
    to = []
    for _ in range(LOG):
        l = [0] * N
        to.append(l)
    for i in range(N):
        to[0][i] = i + 1 if S[i] == "R" else i - 1
    for i in range(1, LOG):
        for j in range(N):
            to[i][j] = to[i - 1][to[i - 1][j]]
    a = []
    for i in range(LOG):
        if ROUND >> i & 1:
            a.append(i)
    ans = [0] * N
    for j in range(N):
        now = j
        for i in a:
            now = to[i][now]
        ans[now] += 1
    L = [str(i) for i in ans]
    print((" ".join(L)))
    return


if __name__ == "__main__":
    main()

#!/usr/bin/env python3
import sys
from math import log2

ROUND = 10**5
LOG = 18  # int(log2(ROUND))


def test():
    print((len(format(ROUND, "b"))))


def main():
    # test()
    # return
    S = eval(input())
    # S = "R" * (10 ** 5 - 1) + "L"
    N = len(S)
    to = []
    for _ in range(LOG):
        l = [0] * N
        to.append(l)
    for i in range(N):
        to[0][i] = i + 1 if S[i] == "R" else i - 1
    for i in range(1, LOG):
        for j in range(N):
            to[i][j] = to[i - 1][to[i - 1][j]]
    ans = [0] * N
    for j in range(N):
        ans[to[LOG - 1][j]] += 1
    L = [str(i) for i in ans]
    print((" ".join(L)))
    return


if __name__ == "__main__":
    main()

-LOG = 33  # int(log2(ROUND)) +LOG = 18  # int(log2(ROUND)) + + +def test(): +    print((len(format(ROUND, "b")))) +    # test() +    # return +    # S = "R" * (10 ** 5 - 1) + "L" -    a = [] -    for i in range(LOG): -        if ROUND >> i & 1: -            a.append(i) -        now = j -        for i in a: -            now = to[i][now] -        ans[now] += 1 +        ans[to[LOG - 1][j]] += 1