import sys input = sys.stdin.readline S=input().strip() if S in "ACDFG": print(S+"#") else: if S=="E": print("F") else: print("C")