|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|1 초||128 MB||0||0||0||0.000%|
A reconnaissance unit reports about an appliance found in the desert: the horrible weapon ABCD (Atomic Beryllium-Cesium Destroyer), fallen into terrorists’ hands. Its four components had been aligned there and in front and behind each of them a carrier rail spread “beyond infinity”, according to the report. Each attempt to destroy something and even to remove one of the parts from its rail would lead to global disaster. Terrorists know that and don’t even make the effort to safeguard: they only wait for word of command to set the appliance going. The parts are not heavy, even a child could move them back and forth along their rails, which is harmless, but, alas, doesn’t change their destructive power. Impasse!
And yet! You have got some secret information from the developers of ABCD, which the terrorists do not know: if its four parts form a perfect rectangle at the moment of switching the weapon on, a self-destruction begins with the only consequence of high radiation in the frames of this rectangle. In comparison with the global catastrophe this may look like an insignificant damage, but it’s a good idea to minimize it, too.
And so, save the mankind! Write a program abcd to determine whether it is possible to rearrange the four parts along the rails in a way to form a perfect rectangle. If the answer is positive, calculate the minimal area possible which will inevitably be exposed to radiation by the process of self-destruction of ABCD. The necessary information is comprised in the report: the distances AB, BC and CD between the parallel rails (see the satellite snapshot above).
One line is read from the standard input, containing three space separated positive real numbers: p=AB, q=BC and r=CD.
The input numbers p, q and r are positive, not greater than 10000 measure units and with no more than 2 decimal digits.
Write one line to the standard output, containing:
3 2.0 3.00