def main
  s = gets.chomp
  islands = s.split('LR')
  results = []

  base = 0
  islands.each_with_index do |island, i|
    if islands.length > 1
      if i == 0
        island = island + 'L'
      elsif i == islands.length - 1
        island = 'R' + island
      else
        island = 'R' + island + 'L'
      end
    end
    i = 0
    while i < island.length do
      c = island[i]
      if (c == 'R' && c == island[i+1]) || (c == 'L' && c == island[i-1])
        results[i + base] = 0
      else c == 'R'
        results[i + base] = 1 + (i / 2).floor + ((island.length - i - 1) / 2).floor
      end
      i += 1
    end
    base += island.length
  end
  puts results.join(' ')
end

main if $0 == __FILE__