using C=System.Console;class X{static void Main(){for(;;){var a=C.ReadLine();C.WriteLine(a.Insert(a.Length/2," "));}}}