n=ord(input())-65 s="A# C C# D# F F# G#".split()[n] print(s)