matrix := [ [1,2,0,0,0,0,0,0], [0,0,5,0,0,0,0,0], [4,4,6,0,0,0,0,0], [0,0,0,0,5,0,0,0], [0,0,0,0,0,0,5,0], [0,0,0,0,0,0,0,5], [0,0,0,5,0,0,0,0], [5,6,5,5,5,2,5,2] ]*Z(7);