r=-2,-1,1,2 while 1:x,y=map(ord,raw_input());print" ".join("%c%c"%(x+i,y+j)for i in r for j in r if(96