#include <stdio.h> #include <string.h> int main() { char a[20],c[20]; while(gets(a)) { char b[100]={0}; if(a!="ENDOFINPUT") { gets(b); gets(c); //printf("%s\n%s",b,c); for(int i=0;i<strlen(b);i++) { if(b[i]=='A') b[i]='V'; else if(b[i]=='B') b[i]='W'; else if(b[i]=='C') b[i]='X'; else if(b[i]=='D') b[i]='Y'; else if(b[i]=='E') b[i]='Z'; else if(b[i]=='F') b[i]='A'; else if(b[i]=='G') b[i]='B'; else if(b[i]=='H') b[i]='C'; else if(b[i]=='I') b[i]='D'; else if(b[i]=='J') b[i]='E'; else if(b[i]=='K') b[i]='F'; else if(b[i]=='L') b[i]='G'; else if(b[i]=='M') b[i]='H'; else if(b[i]=='N') b[i]='I'; else if(b[i]=='O') b[i]='J'; else if(b[i]=='P') b[i]='K'; else if(b[i]=='Q') b[i]='L'; else if(b[i]=='R') b[i]='M'; else if(b[i]=='S') b[i]='N'; else if(b[i]=='T') b[i]='O'; else if(b[i]=='U') b[i]='P'; else if(b[i]=='V') b[i]='Q'; else if(b[i]=='W') b[i]='R'; else if(b[i]=='X') b[i]='S'; else if(b[i]=='Y') b[i]='T'; else if(b[i]=='Z') b[i]='U'; else b[i]=b[i]; } printf("%s",b); printf("\n"); } else { break; } } return 0; }