N=int(input())i=1while N>4*i*(i+1)//2:i+=1a=(4*i*(i+1)//2-N)//iif a==0: print("Pineapple pen")elif a==1: print("Apple")elif a==2: print("Pineapple")else: print("Pen")