s = gets.chomp
cnt = 0
num = Array.new(s.length, 0)

(0..(s.length - 2)).each do |i|
  cnt += 1 if s[i] == 'R'
  if s[i] + s[i+1] == 'RL'
    if cnt > 0
      if cnt.even?
        tmp = cnt / 2
        num[i] += tmp
        num[i+1] += tmp
      else
        if cnt == 1
          num[i] += 1
        else
          tmp = cnt / 2
          num[i] += tmp + 1
          num[i+1] += tmp
        end
      end
    end
  cnt = 0
  end
end

(s.length - 1).downto(1).each do |i|
  cnt += 1 if s[i] == 'L'
  if s[i-1] + s[i] == 'RL'
    if cnt > 0
      if cnt.even?
        tmp = cnt / 2
        num[i] += tmp
        num[i-1] += tmp
      else
        if cnt == 1
          num[i] += 1
        else
          tmp = cnt / 2
          num[i] += tmp + 1
          num[i-1] += tmp
        end
      end
    end
  cnt = 0
  end
end

puts num.join(' ')