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 }
    back_track = i+1 + right
    sections.push [i, left, right]
  end
end

result = [0] * N
sections.each do |section|
  i = section[0]
  left = section[1]
  right = section[2]
  times = [left, right].max - 1
  if (left+right)%2 == 0
    v = (left+right)/2
    left = v
    right = v
  end
  result[i] = times%2 == 1 ? right : left
  result[i+1] = times%2 == 1 ? left : right
end

puts result.join(' ')
