S = gets.chomp
n = S.size
res = Array.new(n, 0)

def func(n, str, res, cnt = 0)
  n.times do |i|
    next cnt += 1 if str[i] == 'R'

    res[i] += cnt / 2
    res[i - 1] += (cnt + 1) / 2
    cnt = 0
  end

  res
end

res = func(n, S, res)

n.times { |i| S[i] = (S[i] == 'R') ? 'L' : 'R' }
res = func(n, S.reverse, res.reverse).reverse

puts res.join(' ')
