import sys input = lambda: sys.stdin.readline().rstrip() # ----------------------- # s = input() if s in {'A', 'C', 'D', 'F', 'G'}: print(s + '#') elif s == 'E': print('F') else: print('C')