Solution to the juggling with zeros problem.