sound = input() if sound == 'E': print('F') elif sound == 'B': print('C') else: print('#' + sound)