using System;
class ProgramD
    {
        static void Main(string[] args)
        {

            string input = Console.ReadLine();

            int frag_L = 0;
            int count_R = 0;
            int count_L = 0;

            for(int i = 0;i < input.Length;i++)
            {
                string s1 = input.Substring(i, 1);

                if(s1 == "R")
                {    
                    if(frag_L == 1)
                    {
                        int count = count_R + count_L;

                        if(count % 2 == 0)
                        {
                            for(int j = 0; j < count;j++)
                            {
                                if(j == count_R -1 || j == count_R )
                                    Console.Write(count/2);
                                else
                                    Console.Write("0");
                                Console.Write(" ");
                            }
                        }
                        else
                        {
                            int judge = 0;
                            if(count_L > count_R)
                            {
                                judge = count_L % 2 ;
                            }
                            else
                            {
                                judge = (count_R % 2 + 1)% 2;
                            }

                            if(judge == 0)
                            {
                                for(int j = 0; j < count;j++)
                                {
                                    if(j == count_R - 1)
                                        Console.Write(count/2 + 1);
                                    else if(j == count_R)
                                        Console.Write(count/2);
                                    else
                                        Console.Write("0");
                                    Console.Write(" ");
                                }
                            }
                            else
                            {
                                for(int j = 0; j < count;j++)
                                {
                                    if(j == count_R - 1)
                                        Console.Write(count/2);
                                    else if(j == count_R)
                                        Console.Write(count/2 + 1);
                                    else
                                        Console.Write("0");
                                    Console.Write(" ");
                                }

                            }
                        }

                        frag_L = 0;
                        count_L = 0;
                        count_R = 0;

                    }
                    count_R++;
                }
                else
                {
                    frag_L = 1;
                    count_L++;
                    if(i == input.Length - 1)
                    {
                        int count = count_R + count_L;

                        if(count % 2 == 0)
                        {
                            for(int j = 0; j < count;j++)
                            {
                                if(j == count_R -1 || j == count_R )
                                    Console.Write(count/2);
                                else
                                    Console.Write("0");
                                Console.Write(" ");
                            }
                        }
                        else
                        {
                            int judge = 0;
                            if(count_L > count_R)
                            {
                                judge = count_L % 2 ;
                            }
                            else
                            {
                                judge = (count_R % 2 + 1) % 2;
                            }

                            if(judge == 0)
                            {
                                for(int j = 0; j < count;j++)
                                {
                                    if(j == count_R - 1)
                                        Console.Write(count/2 + 1);
                                    else if(j == count_R)
                                        Console.Write(count/2);
                                    else
                                        Console.Write("0");
                                    Console.Write(" ");
                                }
                            }
                            else
                            {
                                for(int j = 0; j < count;j++)
                                {
                                    if(j == count_R - 1)
                                        Console.Write(count/2);
                                    else if(j == count_R)
                                        Console.Write(count/2 + 1);
                                    else
                                        Console.Write("0");
                                    Console.Write(" ");
                                }

                            }
                        }

                        frag_L = 0;
                        count_L = 0;
                        count_R = 0;

                    }
                }
            }

        }

           
    }

Measured memory_bytes: 13536