s = readline.strip.split('') #.map(&:to_i)
cur = s.map{1}

def step(arr, s)
  n = arr.size
  new_arr = s.map{0}
  0.upto(n-1).each do |i|
    next if arr[i] == 0
    if s[i] == 'R'
      new_arr[i+1] += arr[i]
    else
      new_arr[i-1] += arr[i]
    end
  end
  new_arr
end

def check(arr, s)
  s.zip(arr).map do |rule, n|
  end
end

arr = cur
c = 0
while true do
  break if arr == step(step(arr, s), s)
  arr = step(arr, s)
  c += 1
end

step(arr, s) if c % 2 == 1
puts arr.join(" ")
