S = input() if S in ('A','C','D','F','G'): print(S+'#') elif S=='E': print('F') else: print('C')