using C=System.Console;class X{static void Main(){for(;;)C.Write("{0}1\n",C.ReadLine().Split('4'));}}