def gathering_children(s)
  ans = Array.new(s.size) { 0 }
  offset = 0
  s.each_char.with_index do |c, i|
    if c == 'R'
      offset = 0
    else
      if offset % 2 == 0
        ans[i - offset] += 1
      else
        ans[i - offset - 1] += 1
      end
      offset += 1
    end
  end

  offset = 0
  (s.size - 1).downto(0) do |i|
    c = s[i]
    if c == 'L'
      offset = 0
    else
      if offset % 2 == 0
        ans[i + offset] += 1
      else
        ans[i + offset + 1] += 1
      end
      offset += 1
    end
  end

  ans.join("\s")
end

puts gathering_children(gets.chomp)