import numpy as np

from scipy.sparse import csr_matrix, linalg

s = np.array(list(eval(input())), dtype='U1')

n = len(s)

child = np.ones(n,dtype=np.int32)

rows = list(range(n))

cols = [i+1 if c == 'R' else i-1 for i,c in enumerate(s)]

x = csr_matrix((np.ones(n,dtype=np.int32),(rows,cols)),(n,n))



def power(x,n):

    if n == 1:

        return x

    y = power(x,n//2)

    y = y*y

    return x*y if n&1 else y



x = power(x,10**100)

print((*(child*x)))
import numpy as np

from scipy.sparse import csr_matrix

s = np.array(list(eval(input())), dtype='U1')

n = len(s)

child = np.ones(n,dtype=np.int32)

rows = np.arange(n)

cols = np.where(s == 'R', rows+1, rows-1)

x = csr_matrix((np.ones(n,dtype=np.int32),(rows,cols)),(n,n))



def power(x,n):

    if n == 1:

        return x

    y = power(x,n//2)

    y = y*y

    return x*y if n&1 else y



x = power(x,10**100)

print((*(child*x)))

import numpy as np
from scipy.sparse import csr_matrix, linalg

s = np.array(list(eval(input())), dtype="U1")
n = len(s)
child = np.ones(n, dtype=np.int32)
rows = list(range(n))
cols = [i + 1 if c == "R" else i - 1 for i, c in enumerate(s)]
x = csr_matrix((np.ones(n, dtype=np.int32), (rows, cols)), (n, n))


def power(x, n):
    if n == 1:
        return x
    y = power(x, n // 2)
    y = y * y
    return x * y if n & 1 else y


x = power(x, 10**100)
print((*(child * x)))

import numpy as np
from scipy.sparse import csr_matrix

s = np.array(list(eval(input())), dtype="U1")
n = len(s)
child = np.ones(n, dtype=np.int32)
rows = np.arange(n)
cols = np.where(s == "R", rows + 1, rows - 1)
x = csr_matrix((np.ones(n, dtype=np.int32), (rows, cols)), (n, n))


def power(x, n):
    if n == 1:
        return x
    y = power(x, n // 2)
    y = y * y
    return x * y if n & 1 else y


x = power(x, 10**100)
print((*(child * x)))

-from scipy.sparse import csr_matrix, linalg +from scipy.sparse import csr_matrix -rows = list(range(n)) -cols = [i + 1 if c == "R" else i - 1 for i, c in enumerate(s)] +rows = np.arange(n) +cols = np.where(s == "R", rows + 1, rows - 1)