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