dic = {
'C': 'C#',
'D': 'D#',
'E': 'F',
'F': 'F#',
'G': 'G#',
'A': 'A#',
'B': 'C'
}

S = input().strip()
print(dic[S])