s = gets.chomp.split("")
ln = s.length
cnts = Array.new(ln, 0)

cnt = 0
for i in 0..(ln-2)
  if s[i] == "R"
    cnt += 1
  end
  if [s[i],s[i+1]].join == "RL"
    cnts[i] += cnt/2
    cnts[i+1] += cnt/2
    if cnt % 2 == 1
      cnts[i] += 1
    end   
    cnt = 0
  end
end

i = ln-1
while 1 <= i
  if s[i] == "L"
    cnt += 1
  end
  if [s[i-1],s[i]].join == "RL"
    cnts[i-1] += cnt/2
    cnts[i] += cnt/2
    if cnt % 2 == 1
      cnts[i] += 1
    end
    cnt = 0
  end
  i -= 1
end
puts cnts.join(" ")