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