class C{static void Main(){string o=new string('9',8000);System.Console.Write(o+"\n"+o);}}