s = gets.chomp.split("")
n = s.size
a = Array.new(n, 1)
b = Array.new(n, 0)

10000.times do |i|
  n.times do |j|
    if s[j]=="R"
      b[j+1] += a[j]
    elsif s[j]=="L"
      b[j-1] += a[j]
    end
  end
  a = b.dup
  b = Array.new(n, 0)
end

n.times do |l|
  print a[l] 
  print " "
end