for(N=~readline();N++;print(o))for(o=i='';i<30;)o+='apple'[(i++-N)%30]||'*'