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