x=raw_input();print x.rsplit(" ")[-1][:-1].title()+" Pen"if"h"in x else"Pen Pineapple Apple Pen"