@@ -0,0 +1,1164 @@
+import java.io.BufferedReader;%0Aimport java.io.InputStreamReader;%0A%0Apublic class Main %7B%0A%0A%09public static void main(String%5B%5D args) throws Exception %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09BufferedReader reader = new BufferedReader( new InputStreamReader(System.in));%0A%09%09int cases = Integer.parseInt(reader.readLine());%0A%09%09for(int ca=0;ca%3Ccases;ca++)%7B%0A%09%09%09StringBuilder builder = new StringBuilder(reader.readLine());%0A%09%09%09StringBuilder temp = new StringBuilder();%0A%09%09%09for(int i=0;i%3Cbuilder.length();i++)%7B%0A%09%09%09%09if(builder.charAt(i) == 'a')%7B%0A%09%09%09%09%09builder = builder.replace(i, i+1, %22z%22);%0A%09%09%09%09%7D%0A%09%09%09%09else%7B%0A%09%09%09%09%09int c = builder.charAt(i);%0A%09%09%09%09%09c--;%0A%09%09%09%09%09builder = builder.replace(i, i+1, ((char) c)+%22%22);%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%09int appendBegin = builder.length()-(builder.length()/3);%0A%09%09%09int appendEnd = builder.length();%0A%09%09%09StringBuilder appended = new StringBuilder(builder.substring(appendBegin,appendEnd));%0A%09%09%09builder = builder.replace(appendBegin, appendEnd, %22%22);%0A%09%09%09int count = 2;%0A%09%09%09while(appended.length()!=0)%7B%0A%09%09%09%09builder.insert(count, appended.charAt(0));%0A%09%09%09%09appended.replace(0, 1, %22%22);%0A%09%09%09%09count+=3;%0A%09%09%09%7D%0A%09%09%09builder = builder.reverse();%0A%09%09%09System.out.println(builder);%0A%09%09%7D%0A%09%7D%0A%7D%0A

Create decode.java