s = gets.chomp
c = [0]*s.length
i = 0
s.scan(/(R+)(L+)/).each do |r, l|
  u = r.length
  i += u
  c[i] += u/2
  c[i-1] += u/2 + u%2
  u = l.length

  c[i] += u/2 + u%2
  c[i-1] += u/2
  i += u
end
puts c*' '