using C=System.Console;class X{static void Main(){for(;;)C.WriteLine(C.ReadLine().Split(' ','a',':')[0]);}}