S = gets.chomp

@f= {}

def f(r, l)
  @f[[r, l]] ||= (
    ret = [0] * (r + l + 2)
    ret[r] = r/2 + 1 + (l + 1)/2
    ret[r + 1] = (r + 1)/2 + 1 + l/2
    ret
  )
end

ans = []
r, l = 0, 0
S.chars do |c|
  case c
  when 'R'
    if r*l != 0
      ans += f(r - 1, l - 1)
      r, l = 0, 0
    end
    r += 1
  when 'L'
    l += 1
  end
end
ans += f(r - 1, l - 1)
puts ans.join(' ')