#include <iostream>
#include <cmath>
using namespace std;
const double pi = 4.0 * atan(1.0);
double S(double a, double b, double x)
{
return pi * b * x / (2 * sqrt(1 - a * a / (4 * x * x)));
}
double solve(double a, double b)
{
const double eps = 1e-9;
double l = a / 2;
double u = a;
while (u - l > eps) {
double m1 = l + 1 * (u - l) / 3;
double m2 = l + 2 * (u - l) / 3;
double f1 = S(a, b, m1);
double f2 = S(a, b, m2);
if (f1 < f2) {
u = m2;
} else {
l = m1;
}
}
return S(a, b, (l + u) / 2);
}
int main()
{
double a, b;
while (cin >> a >> b) {
cout << solve(a, b) << endl;
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY29uc3QgZG91YmxlIHBpID0gNC4wICogYXRhbigxLjApOwoKZG91YmxlIFMoZG91YmxlIGEsIGRvdWJsZSBiLCBkb3VibGUgeCkKewoJcmV0dXJuIHBpICogYiAqIHggLyAoMiAqIHNxcnQoMSAtIGEgKiBhIC8gKDQgKiB4ICogeCkpKTsKfQoKZG91YmxlIHNvbHZlKGRvdWJsZSBhLCBkb3VibGUgYikKewkKCWNvbnN0IGRvdWJsZSBlcHMgPSAxZS05OwoJZG91YmxlIGwgPSBhIC8gMjsKCWRvdWJsZSB1ID0gYTsKCgl3aGlsZSAodSAtIGwgPiBlcHMpIHsKCQlkb3VibGUgbTEgPSBsICsgMSAqICh1IC0gbCkgLyAzOwoJCWRvdWJsZSBtMiA9IGwgKyAyICogKHUgLSBsKSAvIDM7CgkJZG91YmxlIGYxID0gUyhhLCBiLCBtMSk7CgkJZG91YmxlIGYyID0gUyhhLCBiLCBtMik7CgkJaWYgKGYxIDwgZjIpIHsKCQkJdSA9IG0yOwoJCX0gZWxzZSB7CgkJCWwgPSBtMTsKCQl9Cgl9CglyZXR1cm4gUyhhLCBiLCAobCArIHUpIC8gMik7Cn0KCmludCBtYWluKCkKewoJZG91YmxlIGEsIGI7Cgl3aGlsZSAoY2luID4+IGEgPj4gYikgewoJCWNvdXQgPDwgc29sdmUoYSwgYikgPDwgZW5kbDsKCX0KfQo=