import java.io.*; import java.util.*; class Main { public static void main(String args[])throws Exception { BufferedReader bu=new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb=new StringBuilder(); char c=bu.readLine().charAt(0); if(c=='A' || c=='C' || c=='D' || c=='F' || c=='G') sb.append(c+"#"); else sb.append((char)(c+1)); System.out.println(sb); } }