Green spot - 2#298

Green spot - 2

1 second
64 megabytes
Medium

Two round projectors create two spots on a wall: one blue, and the other yellow. Find the area of the green spot formed by the overlap of these two spots.

Input

The first line contains the coordinates of the center and the radius of the first spot: X_1, Y_1, R_1. The second line contains the coordinates of the center and the radius of the second spot: X_2, Y_2, R_2.

|X_i|, |Y_i|, R_i \leq 10^6

Output

Output a single number: the area of the green spot, with an accuracy of decimal places, according to mathematical calculation rules.

Examples

Example 1

Loading
Loading