Rectangle and the ray#1035

Rectangle and the ray

1 second
64 megabytes
Very hard

A rectangle with sides parallel to the coordinate axes is given by the coordinates of two opposite vertices: x_1, y_1, and x_2, y_2. A ray emanates from the origin, forming an angle with the positive -axis.

Calculate the area of the part of the rectangle that lies inside the angle formed between the ray and the positive direction of the -axis.

Input

The input contains five real numbers: x_1, y_1, x_2, y_2, and . The angle is measured counterclockwise from the positive -axis and is given in degrees.

All coordinates do not exceed 10^5 in absolute value. The angle satisfies 0 \leq \alpha \leq 360.

Output

Output one real number: the required area. Print the answer rounded to one digit after the decimal point.

Examples

Example 1

Loading
Loading