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