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