def PrintMatrix(m): for i in m: print(' '.join([str(n) for n in i]))