a=0xcea6360e0e86 while 1:print(input(),'apples'[:a%2+5]);a//=2