def PrintMatrix(mat): print('\n'.join(map(lambda row: ' '.join(map(str, row)), mat)))