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