line = gets.chomp
lrs = [{ char: "R", count: 0 }]
line.each_char do |char|
  if char == lrs[-1][:char]
    lrs[-1][:count] += 1
  else
    lrs += [{ char: char, count: 1}]
  end
end

ans = []
lrs.each_slice(2) do |(r, l)|
  ans += [0] * (r[:count] - 1) if r[:count] - 1 > 0

  rl_count = r[:count] + l[:count]
  ans +=
    if rl_count.even?
      [rl_count / 2, rl_count / 2]
    elsif r[:count].even?
      [rl_count / 2, rl_count / 2 + 1]
    else
      [rl_count / 2 + 1, rl_count / 2]
    end

  ans += [0] * (l[:count] - 1) if l[:count] - 1 > 0
end

puts ans.join(" ")
