s=eval(input())

n=len(s)

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

r=ans[:]

p=''

c=0

for i in range(n):

  x=s[i]

  if x=='R':

    if p=='R':

      c+=1

    else:

      c=1

  else:

    if p=='R':

      r[i-1]=c

      c=0

  p=x

r=r[::-1]

s=s[::-1]

for i in range(n):

  x=s[i]

  if x=='L':

    if p=='L':

      c+=1

    else:

      c=1

  else:

    if p=='L':

      r[i-1]=c

      c=0

  p=x

r=r[::-1]

s=s[::-1]

o=ans[:]

e=ans[:]

for i in range(n):

  y=r[i]

  if y!=0:

    x=s[i]

    if x=='R':

      ans[i]+=(y+1)//2

      ans[i+1]+=y//2

    else:

      ans[i-1]+=y//2

      ans[i]+=(y+1)//2

print((*ans))
# -*- coding: utf-8 -*-

 

def solve():

  s=eval(input())

  n=len(s)

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

  r=ans[:]

  p='' 

  c=0

  for i in range(n):

    x=s[i]

    if x=='R':

      if p=='R':

        c+=1

      else:

        c=1

    else:

      if p=='R':

        r[i-1]=c

        c=0

    p=x

  r=r[::-1] 

  s=s[::-1]

  for i in range(n):

    x=s[i]

    if x=='L':

      if p=='L':

        c+=1

      else:

        c=1

    else:

      if p=='L':

        r[i-1]=c

        c=0

    p=x

  r=r[::-1]

  s=s[::-1]

  o=ans[:]

  e=ans[:]

  for i in range(n):

    y=r[i]

    if y!=0:

      x=s[i]

      if x=='R':

        ans[i]+=(y+1)//2

        ans[i+1]+=y//2

      else:

        ans[i-1]+=y//2

        ans[i]+=(y+1)//2

  print((*ans))

  

if __name__ == '__main__':

    solve()

s = eval(input())
n = len(s)
ans = [0 for _ in range(n)]
r = ans[:]
p = ""
c = 0
for i in range(n):
    x = s[i]
    if x == "R":
        if p == "R":
            c += 1
        else:
            c = 1
    else:
        if p == "R":
            r[i - 1] = c
            c = 0
    p = x
r = r[::-1]
s = s[::-1]
for i in range(n):
    x = s[i]
    if x == "L":
        if p == "L":
            c += 1
        else:
            c = 1
    else:
        if p == "L":
            r[i - 1] = c
            c = 0
    p = x
r = r[::-1]
s = s[::-1]
o = ans[:]
e = ans[:]
for i in range(n):
    y = r[i]
    if y != 0:
        x = s[i]
        if x == "R":
            ans[i] += (y + 1) // 2
            ans[i + 1] += y // 2
        else:
            ans[i - 1] += y // 2
            ans[i] += (y + 1) // 2
print((*ans))

# -*- coding: utf-8 -*-
def solve():
    s = eval(input())
    n = len(s)
    ans = [0 for _ in range(n)]
    r = ans[:]
    p = ""
    c = 0
    for i in range(n):
        x = s[i]
        if x == "R":
            if p == "R":
                c += 1
            else:
                c = 1
        else:
            if p == "R":
                r[i - 1] = c
                c = 0
        p = x
    r = r[::-1]
    s = s[::-1]
    for i in range(n):
        x = s[i]
        if x == "L":
            if p == "L":
                c += 1
            else:
                c = 1
        else:
            if p == "L":
                r[i - 1] = c
                c = 0
        p = x
    r = r[::-1]
    s = s[::-1]
    o = ans[:]
    e = ans[:]
    for i in range(n):
        y = r[i]
        if y != 0:
            x = s[i]
            if x == "R":
                ans[i] += (y + 1) // 2
                ans[i + 1] += y // 2
            else:
                ans[i - 1] += y // 2
                ans[i] += (y + 1) // 2
    print((*ans))


if __name__ == "__main__":
    solve()

-s = eval(input()) -n = len(s) -ans = [0 for _ in range(n)] -r = ans[:] -p = "" -c = 0 -for i in range(n): -    x = s[i] -    if x == "R": -        if p == "R": -            c += 1 -        else: -            c = 1 -    else: -        if p == "R": -            r[i - 1] = c -            c = 0 -    p = x -r = r[::-1] -s = s[::-1] -for i in range(n): -    x = s[i] -    if x == "L": -        if p == "L": -            c += 1 -        else: -            c = 1 -    else: -        if p == "L": -            r[i - 1] = c -            c = 0 -    p = x -r = r[::-1] -s = s[::-1] -o = ans[:] -e = ans[:] -for i in range(n): -    y = r[i] -    if y != 0: +# -*- coding: utf-8 -*- +def solve(): +    s = eval(input()) +    n = len(s) +    ans = [0 for _ in range(n)] +    r = ans[:] +    p = "" +    c = 0 +    for i in range(n): -            ans[i] += (y + 1) // 2 -            ans[i + 1] += y // 2 +            if p == "R": +                c += 1 +            else: +                c = 1 -            ans[i - 1] += y // 2 -            ans[i] += (y + 1) // 2 -print((*ans)) +            if p == "R": +                r[i - 1] = c +                c = 0 +        p = x +    r = r[::-1] +    s = s[::-1] +    for i in range(n): +        x = s[i] +        if x == "L": +            if p == "L": +                c += 1 +            else: +                c = 1 +        else: +            if p == "L": +                r[i - 1] = c +                c = 0 +        p = x +    r = r[::-1] +    s = s[::-1] +    o = ans[:] +    e = ans[:] +    for i in range(n): +        y = r[i] +        if y != 0: +            x = s[i] +            if x == "R": +                ans[i] += (y + 1) // 2 +                ans[i + 1] += y // 2 +            else: +                ans[i - 1] += y // 2 +                ans[i] += (y + 1) // 2 +    print((*ans)) + + +if __name__ == "__main__": +    solve()