Limits 1s, 32 MB

A ship named Prometheus disappeared in the Atlantic Ocean for unknown reasons. Not a single clue was even found about the ship. This is not the first time, five more ships from different countries have also disappeared in the same region before.

ACM (Artificially Correct Mathematicians) are known for their exclusive service using Artificial Intelligence. They don’t do any physical operations. Instead, they use special devices powered by AI. They are currently investigating the ship disappearances.

To investigate, they have identified a triangular area (marked red) in the ocean where there is a high probability of finding Prometheus.

To get more precise information, they have placed three beacons AA, BB and CC (marked blue) on the triangle’s vertices.

After that, they placed their AI radar from space exactly at the point MM (marked yellow), which will inform them about anomalies in the circular area (marked green) that falls in its search radius.

Note:

  • Point MM is the midpoint of ACAC.

  • AA, BB and CC always will be on the border of the radar’s range.

  • It is guaranteed that ABC\angle ABC always 90°90\degree.

  • The anomalies only occur within the triangular area covered by beacons AA, BB, and CC.

However, the AI radar is not only monitoring the triangular area but also the entire circular area within its radius. So, if the above picture and the notes are observed it can be seen that ACAC is the diameter of the radar’s range.

ACM has limited funds for this task. So they want to cut costs and find alternatives. Before approval, the corporation wants to know how much area is monitored where no anomalies will occur (marked green).

Now, you are given aa, bb which are the distance between beacons AA and BB, and BB and CC respectively. Find the total area that is monitored where no anomalies will occur (marked green).

Some important formulas to be noted:

  • Area of a right-angled triangle =  ½×base×height½ \times base \times height.

  • For a right-angled triangle, hypotenuse2=base2+height2hypotenuse^2 = base^2 + height^2.

  • Area of a circle = π×r2π \times r^2.

  • Use π=3.1416π = 3.1416 for this problem.

Input

The input will contain two positive integers aa and bb (1a,b100)(1 \le a, b \le 100) — denoting the distance between beacons AA and BB, and BB and CC respectively.

Output

Print the total area that is monitored where no anomalies will occur (marked green). Print 66 digits after the decimal point.

Samples

InputOutput
4 7
37.051000
InputOutput
100 100
10708.000000

Use double data type for this problem.

Submit

Login to submit.

Statistics

95% Solution Ratio
iffatul_anonEarliest, 11M ago
user.5431Fastest, 0.0s
iffatul_anonLightest, 4.9 MB
Aaratrik.16Shortest, 176B
Toph uses cookies. By continuing you agree to our Cookie Policy.