s = gets.chomp
n = s.length
c = [0, 0]
ans = Array.new(n, 0)
for i in 0...n do
  if s[i] == 'R'
    c[i % 2] += 1
  else
    if i % 2 == 0
      ans[i] += c[0]
      ans[i - 1] += c[1]
    else
      ans[i] += c[1]
      ans[i - 1] += c[0]
    end
    c[0] = c[1] = 0
  end
end
for i in 0...n do
  if s[-1 - i] == 'L'
    c[i % 2] += 1
  else
    if i % 2 == 0
      ans[-1 - i] += c[0]
      ans[-i] += c[1]
    else
      ans[-1 - i] += c[1]
      ans[-i] += c[0]
    end
    c[0] = c[1] = 0
  end
end
puts ans.join(" ")
