S = gets.chomp
N = S.size

sections = []

back_track = 0
0.upto(N-1) do |i|
  if S[i, 2] == 'RL'
    left = i+1 - back_track
    right = (i+2).upto(N-1).reduce(1) { |r, si| break r if S[si] == 'R'; r+1 }
    if (left + right)%2 == 0
      v = (left+right) / 2
      left = v
      right = v
    end
    sections.push [i, left, right]
    back_track = i+1 + right
  end
end

result = [0] * N
sections.each do |section|
  result[section[0]] = section[1]
  result[section[0]+1] = section[2]
end

puts result.join(' ')
