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