S = gets.chomp.split("")
children = Array.new(S.length, 1)
max = 0
current = 0
prev = "R"
S.each do |v|
  if prev != v
    current = 0
    prev = v
    next
  end
  current = current + 1
  max = current if max < current
  prev = v
end
max.times do |_|
  moving = Array.new(S.length, 0)
  S.each.with_index do |v, i|
    tmp = children[i]
    if v == "R"
      moving[i + 1] = moving[i + 1] + tmp
    else
      moving[i - 1] = moving[i - 1] + tmp
    end
  end
  children = moving
end
puts children.join
