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