sound = ["A","A#","B","B","C","C#","D","D#","E","F","F#","G","G#","A"] s = input() print(sound[sound.index(s)+1])