print matrix