s = gets.chomp
f, c = 0, 0
p = []
0.upto(s.size - 1) do |i|
  if s[i] == 'R' && f == 1
    f = 0
    p.push(c)
    c = 0
  elsif s[i] == 'L' && f == 0
    f = 1
    p.push(c)
    c = 0
  end
  c += 1
  p.push(c) if s.size - 1 == i
end
ans = Array.new(s.size, 0)
pos = 0
while p.size > 0
  x = p.shift
  y = p.shift
  if (x + y).even?
    pos += x
    ans[pos - 1] = (x + y) / 2
    ans[pos] = (x + y) / 2
    pos += y
  elsif (x.even?)
    pos += x
    ans[pos - 1] = (x + y) / 2
    ans[pos] = (x + y) / 2 + 1
    pos += y
  else
    pos += x
    ans[pos - 1] = (x + y) / 2 + 1
    ans[pos] = (x + y) / 2
    pos += y
  end
end
puts ans.join(' ')