#!/bin/env ruby
#

s = STDIN.gets.chars
s.pop

a = Array.new(s.size, 1)

1.upto(10 ** 100) do |i|
  before = a.dup
  s.each_index do |j|
    if s[j] == 'R' && a[j] != 0
      a[j+1] = a[j+1] + 1
      a[j] = a[j] - 1
    elsif s[j] == 'L' && a[j] != 0
      a[j-1] = a[j-1] + 1
      a[j] = a[j] - 1
    end
  end
  break if a == before
end

puts a.join(" ")
