package yukicoder; import java.util.Scanner; public class Yuki7 { /* * うーさー暗号 */ public static void main(String[] args) { char[] arc = {'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'}; Scanner scan = new Scanner(System.in); String str = scan.next(); scan.close(); for (int i = 0; i < str.length(); i++) { for (int j =0; j < arc.length; j++ ) { if(str.charAt(i) == arc[j]){ int num = (j-(i+1)%26); if(num < 0) { System.out.print(arc[26 + num]); } else { System.out.print(arc[num]); } } } } } }