#python3

def main():

    s = list(input())

    n = len(s)

    ans = [0 for _ in range(n)]

    for _ in range(2):

        c = 0

        for i in range(n):

            if s[i] == 'R': 

                c += 1    

            else:

                ans[i-1] += (c+1)//2

                ans[i] += c//2 

                c = 0



        s.reverse()        

        ans.reverse()

        for i in range(n):

            if s[i] == 'R':

                s[i] = 'L'

            else:

                s[i] = 'R'



    for i in range(n):

        if i == n-1:

            print(ans[i])

        else:

            print(ans[i], end=' ')

main()

import sys

read = sys.stdin.buffer.read

readline = sys.stdin.buffer.readline

readlines = sys.stdin.buffer.readlines

def main():

    S = readline().decode().rstrip()

    T = ['L' if i == 'R' else 'R' for i in S[::-1]]

    N = len(S)

    def calc(S):

        cnt = 0

        score = [0 for _ in range(N)]

        f = True

        for i in range(N):

            if S[i] == 'R':

                f = True

                cnt += 1

            else:

                if f:

                    score[i-1] = (cnt+1)//2

                    score[i] = cnt//2

                    cnt = 0

                f = False

        return score

    for i, j in zip(calc(S), calc(T)[::-1]):

        print(i+j, end=' ')

if __name__ == '__main__':

    main()

# python3
def main():
    s = list(input())
    n = len(s)
    ans = [0 for _ in range(n)]
    for _ in range(2):
        c = 0
        for i in range(n):
            if s[i] == "R":
                c += 1
            else:
                ans[i - 1] += (c + 1) // 2
                ans[i] += c // 2
                c = 0
        s.reverse()
        ans.reverse()
        for i in range(n):
            if s[i] == "R":
                s[i] = "L"
            else:
                s[i] = "R"
    for i in range(n):
        if i == n - 1:
            print(ans[i])
        else:
            print(ans[i], end=" ")


main()

import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines


def main():
    S = readline().decode().rstrip()
    T = ["L" if i == "R" else "R" for i in S[::-1]]
    N = len(S)

    def calc(S):
        cnt = 0
        score = [0 for _ in range(N)]
        f = True
        for i in range(N):
            if S[i] == "R":
                f = True
                cnt += 1
            else:
                if f:
                    score[i - 1] = (cnt + 1) // 2
                    score[i] = cnt // 2
                    cnt = 0
                f = False
        return score

    for i, j in zip(calc(S), calc(T)[::-1]):
        print(i + j, end=" ")


if __name__ == "__main__":
    main()

-# python3 -def main(): -    s = list(input()) -    n = len(s) -    ans = [0 for _ in range(n)] -    for _ in range(2): -        c = 0 -        for i in range(n): -            if s[i] == "R": -                c += 1 -            else: -                ans[i - 1] += (c + 1) // 2 -                ans[i] += c // 2 -                c = 0 -        s.reverse() -        ans.reverse() -        for i in range(n): -            if s[i] == "R": -                s[i] = "L" -            else: -                s[i] = "R" -    for i in range(n): -        if i == n - 1: -            print(ans[i]) -        else: -            print(ans[i], end=" ") +import sys + +read = sys.stdin.buffer.read +readline = sys.stdin.buffer.readline +readlines = sys.stdin.buffer.readlines -main() +def main(): +    S = readline().decode().rstrip() +    T = ["L" if i == "R" else "R" for i in S[::-1]] +    N = len(S) + +    def calc(S): +        cnt = 0 +        score = [0 for _ in range(N)] +        f = True +        for i in range(N): +            if S[i] == "R": +                f = True +                cnt += 1 +            else: +                if f: +                    score[i - 1] = (cnt + 1) // 2 +                    score[i] = cnt // 2 +                    cnt = 0 +                f = False +        return score + +    for i, j in zip(calc(S), calc(T)[::-1]): +        print(i + j, end=" ") + + +if __name__ == "__main__": +    main()