import java.io.BufferedInputStream;
import java.util.Scanner;
/**
* 被题目吓到了。。。
* poj1298
* @author NC
*/
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(new BufferedInputStream(System.in));
while (scan.hasNext()) {
String sss = scan.nextLine().trim();
if (sss.equals("ENDOFINPUT")) {
break;
}
if (sss.equals("START")) {
String code = scan.nextLine().trim();
String end = scan.nextLine().trim();
char[] cs = code.toCharArray();
//用foreach循环时,只能读,不能改
for(int i=0;i<cs.length;i++){
if(cs[i]>='A'&&cs[i]<='Z'){
int cc = cs[i]-'A';
cs[i] = (char)((cc+26-5)%26+'A');
}
}
System.out.println(cs);//toString的话,不是输出字符串
}
if (sss.equals("END")) {
continue;
}
}
}
}
import java.util.Scanner;
/**
* 被题目吓到了。。。
* poj1298
* @author NC
*/
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(new BufferedInputStream(System.in));
while (scan.hasNext()) {
String sss = scan.nextLine().trim();
if (sss.equals("ENDOFINPUT")) {
break;
}
if (sss.equals("START")) {
String code = scan.nextLine().trim();
String end = scan.nextLine().trim();
char[] cs = code.toCharArray();
//用foreach循环时,只能读,不能改
for(int i=0;i<cs.length;i++){
if(cs[i]>='A'&&cs[i]<='Z'){
int cc = cs[i]-'A';
cs[i] = (char)((cc+26-5)%26+'A');
}
}
System.out.println(cs);//toString的话,不是输出字符串
}
if (sss.equals("END")) {
continue;
}
}
}
}