s = input()
if s in ["A", "C", "D", "F", "G"]:
    print(s + "#")
elif s == "E":
    print("F")
else:
    print("C")