s = gets.chomp.split('')

ans = { 0 => Array.new(s.size, 1) }
1.upto(10**5) do |i|
  now = ans[i-1].clone
  tmp = now.clone
#   pp "#{i}回目: tmp #{tmp}"
  s.size.times do |j|
    next if tmp[j].zero?
    
    if s[j] == 'R'
#       puts "\t R:#{j} \n\ttmp: #{tmp}\n\tnow: #{now}"
      now[j+1] += tmp[j]
      now[j] -= tmp[j]
    else
#       puts "\t L:#{j} \n\ttmp: #{tmp}\n\tnow: #{now}"
      now[j-1] += tmp[j]
      now[j] -= tmp[j]
    end
  end
  ans[i] = now
#   pp "#{i}回目: #{now}"
end

puts ans[s.size].join(' ')
