chars = gets.chars

ans = Array.new(chars.length) { 0 }

cnt = 0

chars.each_with_index do |c, i|
  if c == 'R'
    cnt += 1
  else
    ans[i] += cnt / 2
    ans[i - 1] += (cnt + 1) / 2
    cnt = 0
  end
end

ans.reverse!

cnt = 0

chars.reverse.each_with_index do |c, i|
  if c == 'L'
    cnt += 1
  else
    ans[i] += cnt / 2
    ans[i - 1] += (cnt + 1) / 2
    cnt = 0
  end
end

ans.reverse!

puts ans.join(' ')