#include <iostream>
#include <cmath>
using namespace std;
double ch(double x, double e)
{
double result = 1;
double member = 1;
for (int i = 1; abs(member) >= e; i++)
{
member *= x * x;
member /= 2*i * (2*i - 1);
result += member;
}
return result;
}
int main()
{
double x, e;
cin >> x >> e;
cout << ch(x, e);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiAKZG91YmxlIGNoKGRvdWJsZSB4LCBkb3VibGUgZSkKewoJZG91YmxlIHJlc3VsdCA9IDE7Cglkb3VibGUgbWVtYmVyID0gMTsKCWZvciAoaW50IGkgPSAxOyBhYnMobWVtYmVyKSA+PSBlOyBpKyspCgl7CgkJbWVtYmVyICo9IHggKiB4OwoJCW1lbWJlciAvPSAyKmkgKiAoMippIC0gMSk7CgkJcmVzdWx0ICs9IG1lbWJlcjsKCX0KCXJldHVybiByZXN1bHQ7Cn0KIAppbnQgbWFpbigpIAp7IAoJZG91YmxlIHgsIGU7CgljaW4gPj4geCA+PiBlOwoJY291dCA8PCBjaCh4LCBlKTsKCXJldHVybiAwOwp9