program t implicit none integer::i,N integer::j read*,i do j=1,i read*,N if(mod(N,40)==0)then print"(A)","ikisugi" else if(mod(N,8)==0)then print"(A)","iki" else if(mod(N,10)==0)then print"(A)","sugi" else print"(i0)",N/3 endif end do end program t