import sys



read = sys.stdin.read

readline = sys.stdin.readline

readlines = sys.stdin.readlines

sys.setrecursionlimit(10 ** 9)

INF = 1 << 60

MOD = 1000000007





def main():

    S = readline().strip()

    N = len(S)



    A = list(range(N))

    for _ in range(10):

        for i, a in enumerate(A):

            if S[a] == 'L':

                A[i] -= 1

            else:

                A[i] += 1



    B = A

    for _ in range(99):

        A, B = B, list(range(N))

        for _ in range(10):

            for i, b in enumerate(B):

                B[i] = A[b]



    ans = [0] * N

    for b in B:

        ans[b] += 1



    print((*ans))

    return





if __name__ == '__main__':

    main()

import sys

from itertools import groupby



read = sys.stdin.read

readline = sys.stdin.readline

readlines = sys.stdin.readlines

sys.setrecursionlimit(10 ** 9)

INF = 1 << 60

MOD = 1000000007





def main():

    S = readline().strip()

    N = len(S)



    s = 0

    ans = [0] * N

    for k, g in groupby(S):

        n = len(list(g))

        if k == 'R':

            ans[s + n - 1] += n - n // 2

            ans[s + n] += n // 2

        else:

            ans[s] += n - n // 2

            ans[s - 1] += n // 2

        s += n



    print((*ans))

    return





if __name__ == '__main__':

    main()

import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10**9)
INF = 1 << 60
MOD = 1000000007


def main():
    S = readline().strip()
    N = len(S)
    A = list(range(N))
    for _ in range(10):
        for i, a in enumerate(A):
            if S[a] == "L":
                A[i] -= 1
            else:
                A[i] += 1
    B = A
    for _ in range(99):
        A, B = B, list(range(N))
        for _ in range(10):
            for i, b in enumerate(B):
                B[i] = A[b]
    ans = [0] * N
    for b in B:
        ans[b] += 1
    print((*ans))
    return


if __name__ == "__main__":
    main()

import sys
from itertools import groupby

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10**9)
INF = 1 << 60
MOD = 1000000007


def main():
    S = readline().strip()
    N = len(S)
    s = 0
    ans = [0] * N
    for k, g in groupby(S):
        n = len(list(g))
        if k == "R":
            ans[s + n - 1] += n - n // 2
            ans[s + n] += n // 2
        else:
            ans[s] += n - n // 2
            ans[s - 1] += n // 2
        s += n
    print((*ans))
    return


if __name__ == "__main__":
    main()

+from itertools import groupby -    A = list(range(N)) -    for _ in range(10): -        for i, a in enumerate(A): -            if S[a] == "L": -                A[i] -= 1 -            else: -                A[i] += 1 -    B = A -    for _ in range(99): -        A, B = B, list(range(N)) -        for _ in range(10): -            for i, b in enumerate(B): -                B[i] = A[b] +    s = 0 -    for b in B: -        ans[b] += 1 +    for k, g in groupby(S): +        n = len(list(g)) +        if k == "R": +            ans[s + n - 1] += n - n // 2 +            ans[s + n] += n // 2 +        else: +            ans[s] += n - n // 2 +            ans[s - 1] += n // 2 +        s += n