for(i in l=(r=readline)(n=r()))v=l.charCodeAt(i),putstr(<>&#{v>64&v%91>2?(n-1+v%32)%26+65|v&32:693%v?v:v^30};)