Solution to the mars networks problem.