using C=System.Console;class X{static void Main(){C.Write(+C.ReadLine()[5]);}}