Attack of aliens#2217

Attack of aliens

1 second
128 megabytes
Very easy

The city of Ensk is attacked by an alien fleet. The fleet consists of spaceships, each in the shape of an isosceles right triangle.

The nose of an alien ship is defined as the vertex of the right angle. The axis of the ship is the altitude dropped to the hypotenuse.

The alien fleet approached from the northeast and stopped so that all ship axes are directed strictly to the southwest.

prb2217

The only way to damage the alien army is to fire a laser beam vertically upward from a point on Earth's surface. Such a beam burns through every enemy ship it passes through (including those it touches at the border). However, this shot will harm the aliens only if all ships are hit at once.

The military authorities of Ensk decided to strike the enemy troops. They chose to place the laser at a point above which all enemy ships are located.

Help the military determine the area where you can place the laser.

Input

The first line contains a single integer (1 \le n \le 100) — the number of alien ships.

Each of the next lines describes a ship's position. The description consists of three integers x_i, y_i, and s_i, where x_i and y_i are the nose coordinates and s_i is the ship's size. Since the ship is an isosceles right triangle, the military defines its size as the length of a leg (cathetus).

All ship sizes are positive integers not exceeding . All ship nose coordinates do not exceed 10^5 in absolute value.

Output

Print the area of the territory located above all the alien ships. Print the answer to three decimal places.

Examples

Example 1

Loading
Loading