S = gets.chomp

rl = [-1]
until rl[-1] == nil do
  rl << S.index('RL', rl[-1] + 1)
end
rl.shift
rl.pop
lr = [0]
until lr[-1] == nil do
  lr << S.index('LR', lr[-1] + 1)
end
lr.shift
lr.pop
rl.map!{|e| e + 1}
lr.map!{|e| e + 1}
lr.unshift(0)
lr.push(S.size)

ans = Array.new(S.size, 0)
rl.each_with_index{|rl, idx|
  r = rl - lr[idx]
  l = lr[idx + 1] - rl
  ans[rl - 1] += (r / 2 + l / 2)
  ans[rl] += (r / 2 + l / 2)
  ans[rl - 1] += 1 if r.odd?
  ans[rl] += 1 if l.odd?
}

puts ans.join(' ')
