s=input()for j in range(-4,0): try: print(*['-^-C^-^--^-^'[({'A':0,'B':2,'C':3,'D':5,'E':7,'F':8,'G':10}[s[0]]-('b'==s[1])+('#'in s)+i)%12] for i in {'7':(0,4,7,10),'M7':(0,4,7,11),'m7':(0,3,7,10),'dim7':(0,3,6,9),'m7b5':(0,3,6,10),'-M7':(0,3,7,11)}[s[j:]]],sep='') break except: pass
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "./prog.py", line 1, in <module> EOFError: EOF when reading a line
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!