ans = ["A#","C","C#","D#","F","F#","G#"] print(ans[ord(input())-ord("A")])