def main()
  s = gets.strip.chomp.chars
  n = s.size
  ans = []
  n.times{ ans << 1 }
  
  10.times do
    # 計算用配列
    tmp = ans.dup
    (0..n-1).each do |j|
      #p tmp
      if (s[j] == 'R')
        ans[j+1] = ans[j+1] + tmp[j]
        ans[j] = ans[j] - tmp[j]
        #p ans
      else
        ans[j] = ans[j] - tmp[j]
        ans[j-1] = ans[j-1] + tmp[j]
        #p ans
      end     
    end
  end
  puts ans.join(" ")
end

main