Solution to the running for president problem.