pain(n,i,a,p){while(i=++n) for(a=0;a