import static java.lang.System.out; import java.util.Arrays; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { List ans = Arrays.asList("C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B", "C"); String S = sc.next(); out.println(ans.get(ans.indexOf(S) + 1)); } } }