s = gets.chars
n = s.length
c = Array.new(n,1)
((10**100) % n).times do
  cc = Array.new(n,0)
  n.times do |i|
    if c[i] > 0
      tmp = c[i]
      c[i] = 0
      cc[i-1] += tmp if s[i] == "L"
      cc[i+1] += tmp if s[i] == "R"
    end
  end
  c = cc
end
puts "#{c.join(" ")}"