s = gets.chomp
len = s.length
ans = Array.new(len,0)
odd = 0
even = 0
pre = -1
for i in 0..len-1
  if s[i] == "R"
    odd,even = even,odd
    odd += 1
  else
    if odd != 0
      pre = i
      odd,even = even,odd
      odd += 1
      ans[i-1] += even
      ans[i] += odd
      odd = 0
      even = 0
    else
      ans[pre-1] += 1 if (i-pre)%2 == 1
      ans[pre] += 1 if (i-pre)%2 == 0
    end
  end
end
ans.each do |i|
  print "#{i} "
end