p1, misunderstood the question. Brute force.