S = input() sharp = "ACDFG" if S in sharp: print(S + "#") else: print(chr(ord(S)+1))