def PrintMatrix(a): for t in a: print(' '.join(map(str, t)))