Paint

아직 제출이 없습니다시간 제한1초메모리 제한512 MB

문제

Zbox found an antique electronic painting board in a garbage dump. He discovered that it miraculously works! As the board is old-fashioned, Zbox can only paint with black and white colors on it.

Now Zbox tries to manipulate this painting board to draw some cool stuff.

This drawing board is completely white at the beginning, and supports the "Inverse Color" operation on a selected circle. In the ii-th operation, Zbox specifies a circle with a radius of r_ir\_i centered at coordinates (x_i,y_i)(x\_i, y\_i), and applies the "Inverse Color" tool. After the operation, the black part of this circle becomes white, and the white part becomes black.

For some reason, Zbox is concerned about the area of the black part of this painting board at each moment.

Zbox is nice! In order to avoid considering some corner cases, his operations guarantee some properties. See data range below for details.

입력

The first line contains an integer qq indicating the total number of operations (1q10001 \leq q \leq 1000).

Each of the next qq lines contains three real numbers xx, yy, and rr, where (x,y)(x, y) is the center of the ii-th circle selected for the "Inverse Color" operation, and rr is its radius.

The data range for all data points guarantees that:

  1. For any two circles specified for "Inverse Color", their centers do not coincide. Specifically, the distance between centers is greater than 10410^{-4}.
  2. For any two circles specified for "Inverse Color", their circumferences do not touch. Specifically, the distance between centers differs from the sum of the radii by more than 10410^{-4}, and the distance between centers differs from the absolute difference of the radii by more than 10410^{-4}.
  3. The absolute value of every real number in the input data is at most 10410^4.

출력

After each operation, print the total area of the black parts of the board. The answer will be considered correct if the absolute or relative error between the output and the standard answer is at most 10610^{-6}.