s = gets.chomp.split(//)
n = s.size
ans = Array.new(n,0)
a = 0
s.each_with_index do |c,i| #前から
  if c == "R"
    a += 1
  elsif a != 0
    ans[i] += a/2
    ans[i-1] += (a+1)/2
    a = 0
  end
end
ans.reverse!
s.reverse_each.with_index do |c,j| # 後ろから
  if c == "L"
    a += 1
  elsif a != 0
    ans[j] += a/2
    ans[j-1] += (a+1)/2
    a = 0
  end
end
puts ans.reverse.join(" ")
