using C=System.Console;class P{static void Main(){var m=C.ReadLine();for(int L=m.Length,r=0,c;r