R="R"

L="L"



def f(r, l):

    ans_r = (r // 2) + (l // 2) + (r % 2) 

    ans_l = (r // 2) + (l // 2) + (l % 2)

    return (ans_r, ans_l)



S=eval(input())

N=len(S)

ans=[0]*N



r_begin = 0

r_end = 0

l_begin = 0

l_end = 0

for i in range(N-1):

    if S[i:i+2] == R+L:

        r_end = i

        l_begin = i+1

    elif S[i:i+2] == L+R:

        l_end = i

        a = f(r_end - r_begin + 1, l_end - l_begin + 1)

        ans[r_end] = a[0]

        ans[l_begin] = a[1]

        

        r_begin = i+1

        r_end = 0

        l_begin = 0

        l_end = 0

else:

    l_end = N - 1

    a = f(r_end - r_begin + 1, l_end - l_begin + 1)

    ans[r_end] = a[0]

    ans[l_begin] = a[1]



print((*ans))

R="R"

L="L"



def f(r, l):

    ans_r = (r // 2) + (r % 2) + (l // 2)

    ans_l = (r // 2) + (l // 2) +  (l % 2)

    return (ans_r, ans_l)



S=eval(input())

N=len(S)

ans=[0]*N



r_begin = 0

r_end = -1

l_begin = 0

l_end = 0

for i in range(N):

    if S[i] == R:

        if r_end == -1:

            continue

        else:

            l_end = i - 1

            a = f(r_end - r_begin + 1, l_end - l_begin + 1)

            ans[r_end] = a[0]

            ans[l_begin] = a[1]



            r_begin = i

            r_end = -1

            l_begin = 0

            l_end = 0

    else:

        if r_end == -1:

            r_end = i - 1

            l_begin = i

        else:

            continue

else:

    l_end = N - 1

    a = f(r_end - r_begin + 1, l_end - l_begin + 1)

    ans[r_end] = a[0]

    ans[l_begin] = a[1]



print((*ans))

R = "R"
L = "L"


def f(r, l):
    ans_r = (r // 2) + (l // 2) + (r % 2)
    ans_l = (r // 2) + (l // 2) + (l % 2)
    return (ans_r, ans_l)


S = eval(input())
N = len(S)
ans = [0] * N
r_begin = 0
r_end = 0
l_begin = 0
l_end = 0
for i in range(N - 1):
    if S[i : i + 2] == R + L:
        r_end = i
        l_begin = i + 1
    elif S[i : i + 2] == L + R:
        l_end = i
        a = f(r_end - r_begin + 1, l_end - l_begin + 1)
        ans[r_end] = a[0]
        ans[l_begin] = a[1]
        r_begin = i + 1
        r_end = 0
        l_begin = 0
        l_end = 0
else:
    l_end = N - 1
    a = f(r_end - r_begin + 1, l_end - l_begin + 1)
    ans[r_end] = a[0]
    ans[l_begin] = a[1]
print((*ans))

R = "R"
L = "L"


def f(r, l):
    ans_r = (r // 2) + (r % 2) + (l // 2)
    ans_l = (r // 2) + (l // 2) + (l % 2)
    return (ans_r, ans_l)


S = eval(input())
N = len(S)
ans = [0] * N
r_begin = 0
r_end = -1
l_begin = 0
l_end = 0
for i in range(N):
    if S[i] == R:
        if r_end == -1:
            continue
        else:
            l_end = i - 1
            a = f(r_end - r_begin + 1, l_end - l_begin + 1)
            ans[r_end] = a[0]
            ans[l_begin] = a[1]
            r_begin = i
            r_end = -1
            l_begin = 0
            l_end = 0
    else:
        if r_end == -1:
            r_end = i - 1
            l_begin = i
        else:
            continue
else:
    l_end = N - 1
    a = f(r_end - r_begin + 1, l_end - l_begin + 1)
    ans[r_end] = a[0]
    ans[l_begin] = a[1]
print((*ans))

-    ans_r = (r // 2) + (l // 2) + (r % 2) +    ans_r = (r // 2) + (r % 2) + (l // 2) -r_end = 0 +r_end = -1 -for i in range(N - 1): -    if S[i : i + 2] == R + L: -        r_end = i -        l_begin = i + 1 -    elif S[i : i + 2] == L + R: -        l_end = i -        a = f(r_end - r_begin + 1, l_end - l_begin + 1) -        ans[r_end] = a[0] -        ans[l_begin] = a[1] -        r_begin = i + 1 -        r_end = 0 -        l_begin = 0 -        l_end = 0 +for i in range(N): +    if S[i] == R: +        if r_end == -1: +            continue +        else: +            l_end = i - 1 +            a = f(r_end - r_begin + 1, l_end - l_begin + 1) +            ans[r_end] = a[0] +            ans[l_begin] = a[1] +            r_begin = i +            r_end = -1 +            l_begin = 0 +            l_end = 0 +    else: +        if r_end == -1: +            r_end = i - 1 +            l_begin = i +        else: +            continue