var i:byte;s:string;begin repeat readln(s);writeln(s);inc(i)until i>5;write(copy("B D C A E D C B A B C D E",1+random(3)*8,9));end.