a,b,c,j;main(i){for(;i=~scanf("%c%c\n",&a,&b);c=!puts(""))for(;++i<3;)for(j=-3;++j<3;)(i+j)%2*i*j&&96<a+i&a+i<105&48<b+j&b+j<57&&printf(!c--+" %c%c",a+i,b+j);}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page