s = input() d = {"A":"A#","B":"C","C":"C#","D":"D#","E":"F","F":"F#","G":"G#"} print(d[s])