You run an internet service provider that charges by traffic. Your network manager insists on building the network from exactly two wireless antennas joined by one underground cable. Each antenna covers a circle centered on itself and you may pick the radius freely. No point of the plane may be covered by both antennas, because a device sitting where the two coverage areas overlap is confused to death.
Potential customers sit at known points of the plane. A customer joins the network if one of the two antennas covers her. Customer i has a traffic desire di. When customers i and j are both covered, the daily traffic between them is di×dj.
The only traffic you can measure is the traffic that passes through the underground cable, that is, the traffic between pairs of customers attached to different antennas. Choose the position and the radius of both antennas so that this traffic is as large as possible.
The input holds several test cases. The first line of each test case has one integer N (1≤N≤200), the number of potential customers. Each of the next N lines has the traffic desire di (1≤di≤200) followed by the coordinates xi, yi (−106≤xi,yi≤106) of one potential customer, all integers. The input ends with a line containing a single 0.
In every test case, no three potential customers lie on one straight line.
For each test case, print one line with the largest traffic that can pass through the underground cable when you choose the best position and radius for each antenna.