fork download
  1. s=input()
  2. for j in range(-4,0):
  3. try:
  4. 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='')
  5. break
  6. except:
  7. pass
Runtime error #stdin #stdout #stderr 0.02s 8696KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 1, in <module>
EOFError: EOF when reading a line