s = gets.chomp + 'X'
r_len = 0
l_len = 0

result = []

state = :R
s.each_char do |c|
  case state
  when :L
    if c != 'L'
      next if r_len + l_len == 0
      (r_len-1).times { result << 0 }
      result << ((r_len+1)/2 + l_len/2)
      result << (r_len/2 + (l_len+1)/2)
      (l_len-1).times { result << 0 }
      r_len = 1
      state = :R
    else
      l_len += 1
    end
  when :R
    if c != 'R'
      l_len = 1
      state = :L
    else
      r_len += 1
    end
  end
end

puts result.join(" ")