s = gets.chars
s *= 1
n = s.length
c = Array.new(n,1)
((10 ** 100) % n + 2).times do |i|
  if c[i] > 0
    c[i] -= 1
    c[i-1] += 1 if s[i] == "L"
    c[i+1] += 1 if s[i] == "R"
  end
end
puts "#{c}"