using C=System.Console;class X{static void Main(){for(;;){var s=C.ReadLine();C.Write(s[0]+" "+s[s.Length-1]+" {0}\n",1+s.LastIndexOf(s[0]));}}}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page