pitch = input() if pitch == "E": half_upper_pitch = "F" elif pitch == "B": half_upper_pitch = "C" else: half_upper_pitch = pitch + "#" print(half_upper_pitch)