S = gets.chomp

chars = S.chars
line = ''
ans = []
index1, index2 = 0, 0

chars.each_with_index do |c, i|
  case c
  when 'R'
    line += c
    if chars[i+1] == 'L'
      index1 = line.size - 1
      index2 = line.size
    end
  when 'L'
    if i == chars.size - 1 or chars[i+1] == 'R'
      line += c
      c1, c2 = 0, 0
      line.chars.each_with_index do |l, j|
        case l
        when 'R'
          if (index2 - j) % 2 == 0
            c1 += 1
          else
            c2 += 1
          end
        when 'L'
          if (j - index2) % 2 == 0
            c1 += 1
          else
            c2 += 1
          end
        end
      end
      tmp = [0] * line.size
      tmp[index1] = c2
      tmp[index2] = c1
      ans << tmp
      line = ''
    else
      line += c
    end
  end
end

puts ans.join(' ')