require 'set'; require 'prime'
INF=Float::INFINITY; MOD=10**9+7
s = gets.chomp
size = s.size
ans = Array.new(size, 0)

rlpos = nil
lodd = true
r = 0
(size-1).times do |i|
  if s[i] == 'R' && s[i+1] == 'R'
    r += 1
  elsif s[i] == 'R' && s[i+1] == 'L'
    ans[i]   = 1 + r / 2
    ans[i+1] = r - r / 2
    r = 0
    rlpos = i
    lodd = true
  elsif s[i] == 'L'
    if lodd
      ans[rlpos+1] += 1
    else
      ans[rlpos] += 1
    end
    lodd = !lodd
  end
end
if lodd
  ans[rlpos+1] += 1
else
  ans[rlpos] += 1
end

puts ans.join(' ')