#38720: _c++


yp11251200@yphs.tp.edu.tw (801-26徐立權)


#include <iostream>
#include <string>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
 
int main(int argc, char** argv) {
int n;
string s;
cin>>n;
while(n--) 
{
cin>>s;
for(int i=0; i<s.size();i++)
{
if(s[i]=='X'||s[i]=='Y'||s[i]=='Z')s[i]-=23;
else s[i]+=3;
cout<<s[i];
}
cout<<endl;
}
return 0;
}