s=input()for j in 4,3,2,1: try:print(*['-^--^-^--^-^'[('A BC D EF G'.find(s[0])-('b'==s[1])+('#'in s)+i)%12]for i in(0,)+{'7':(4,7,10),'M7':(4,7,11),'m7':(3,7,10),'dim7':(3,6,9),'m7b5':(3,6,10),'-M7':(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!