import strutils const list = "A A# B C C# D D# E F F# G G#".split let s = readLine stdin for i, v in list: if s == v: echo list[succ i]