#light "off"
open System;;
open System.IO;;

let reader = new StreamReader(new BufferedStream(Console.OpenStandardInput ()))
let writer = new StreamWriter(new BufferedStream(Console.OpenStandardOutput ()))

let skipSpaces () = while reader.Peek () <= int ' ' do reader.Read () |> ignore done;;
let read f = skipSpaces (); [|while reader.Peek () > int ' ' do yield char (reader.Read ()) done |] |> System.String |> f;;
let readint () = skipSpaces (); let mutable ans = 0 in while reader.Peek () > int ' ' do ans <- ans * 10 + (reader.Read () - int '0'); done; ans;;
let write (s : string) = writer.Write s;;
let writeln (s : string) = writer.WriteLine s;;

let S = read string;;
let N = S.Length;;

let mutable i = 0;;

while i < N do
  let j = i in
  while i < N && S.[i] = 'R' do i <- i + 1 done;
  let k = i in
  while i < N && S.[i] = 'L' do i <- i + 1 done;
  for l in j..k-2 do
    printf "%d " 0
  done;
  let a = k - j in
  let b = i - k in
  printf "%d " ((a + 1) / 2 + b / 2);
  printf "%d " (a / 2 + (b + 1) / 2);
  for l in k+1..i-1 do
    printf "%d " 0
  done;
done;;

printfn "";;

reader.Close();;
writer.Close();;