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