s = gets.chomp.split('')
arr = Array.new(s.length)
arr.fill(0)
len = s.length
tmp = ''
subs = []
(len - 1).times do |i|
  s1, s2 = s[i], s[i + 1]
  tmp += s1
  if s1 == 'L' && s2 == 'R' || i + 2 >= len
    tmp += 'L' if i + 2 >= len
    subs.push(tmp)
    tmp = ''
  end
  if s1 == 'R' && s2 == 'L'
    arr[i] = -1
  end
end
start_index = 0
subs.each do |sub|
  arr.each_with_index do |i, j|
    if i == -1
      start_index = j
      break
    end
  end
  sub_len = sub.length
  if sub_len % 2 == 0
    arr[start_index] = sub_len / 2
    arr[start_index + 1] = sub_len / 2
  else
    r_count, l_count = sub.count('R'), sub.count('L')
    arr[start_index] = (sub_len / 2).to_i
    arr[start_index + 1] = (sub_len / 2).to_i
    if start_index % 2 == 0
      if r_count % 2 == 0
        arr[start_index + 1] += 1
      else
        arr[start_index] += 1
      end
    else
      if l_count % 2 == 0
        arr[start_index] += 1
      else
        arr[start_index + 1] += 1
      end
    end
  end
end
puts arr.join(' ')