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]<s[1]?s[0]:s[1]);C.WriteLine(s);}}}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page