s = gets.chomp
slast = s.length
lpoint = []
result = []
s.length.times do |i|
  lpoint[i] = -1
  result[i] = 0
end

i = 0
lp = 0
lefti = 0
lefts = "R"
s.each_char do |si|
  if (lefts == "R" && si == "L")
    lp = i
  end
  if (lefts == "L" && si == "R" )
    lefti.upto(i-1) do |li|
      lpoint[li] = lp
    end
    lefti = i
  end
  lefts = si
  i += 1
  if (i == slast)
    lefti.upto(i-1) do |li|
      lpoint[li] = lp if lpoint[li] == -1
    end
  end
end

s.length.times do |si|
  lp = lpoint[si]
  cost = (lp - si)%2
  if cost == 0
    result[lp] += 1
  else
    result[lp-1] += 1
  end
end
puts result.join(" ")