import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Question18 { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String line; try{ line = in.readLine(); }catch(IOException e){ System.out.println("-1"); return; } int max = line.length(); StringBuffer result = new StringBuffer(); for(int i = 0; i < max; i++){ int x = (i + 1) % 26; int d = line.charAt(i) - 65; char c = (char)(65+(d - x + 26)%26); result.append(c); } System.out.println(result.toString()); } }