for(i=7;i--;print(o))for([,x]in readline(o=''))o+=(c=x.charCodeAt())>64?String.fromCharCode(c+13-26*(c%32>13)):x