def main()
  s = gets.strip.chomp.chars
  n = s.size
  ans = []
  n.times{ ans << 0 }
  
  cnt = 0
  (0..n-1).each do |j|
    if (s[j] == 'R')
      cnt = cnt+1
    else
      ans[j] = ans[j] + cnt/2
      ans[j-1] = ans[j-1] + (cnt+1)/2
      cnt = 0
    end
  end
  (0..n-1).reverse_each do |j|
    if (s[j] == 'L')
      cnt = cnt+1
    else
      ans[j+1] = ans[j+1] + (cnt+1)/2
      ans[j] = ans[j] + (cnt)/2
      cnt = 0
    end
  end
  puts ans.join(" ")
end

main