using C=System.Console;class X{static void Main(){for(;;){var s=C.ReadLine();for(;s.Length>1;s=s.Remove(0,2))C.Write(s[0]