Solution to the Halloween Party problem.