r=range(-2,3) while 1:a,b=raw_input();print" ".join([chr(i)+`j`for(i,j)in[(x+ord(a),y+int(b))for x in r for y in r if abs(x*y)==2]if 0<j<9<i-87<18])
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page