CATXAT - CAT and XAT

In a certain language (consisting of 26 upper case alphabets only), 
CAT is written as ZGXEQX. 
XAT is written as UBXEQX.
You are given various strings as input and according to the translation logic potrayed by above examples you need to give its corresponding string in that other language. 

Input Specification:
First line consists of t, the number of test cases. Next t lines consists of a string s consisting of uppercase alphabets (A-Z) only. 

Output Specification:
Output consists of t lines each containing the final transformed output string for given input string. 

Constraint:
t <= 100 
1<=length(s) <= 100 

Sample Input:

CAT 
XAT 

Sample Output: 
ZGXEQX 
UBXEQX 

Added by:Sanket Singhal
Date:2015-02-16
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ASM64 JS-MONKEY
Resource:Own Problem(CQM-7 BIT Mesra)

hide comments
2018-12-22 16:14:42
.
2018-03-16 08:12:34
easy acc
2017-01-18 12:24:53
should be moved to Tutorial..!!
2015-09-23 07:52:32 Avinash Kodakandla
what should be the ans for CATAT ?
2015-02-17 18:23:19 :.Mohib.:
Easy...
2015-02-16 17:19:06 RIVU DAS
Tutorial Stuff!!
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.