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