S = input()
if S in "ACDFG":
    print(S + "#")
elif S == "E":
    print("F")
else:
    print("C")