a=matrix([[1,0],[2,1]])
b=matrix([[1,2],[0,1]])
x=a*b
print a.inverse()
print b.inverse()
print x.inverse()