print("A","Pen Pineapple A","Pinea")[len(raw_input())%5%3]+"pple Pen"