#include <iostream>
#include <cmath>
using namespace std;
int main() {
double x, e;
cin>>x>>e;
double sum1=x; // для i=0
double sum2=-x*x*x/6; // для i=1
for (int i=2; abs(1/sum2-1/sum1)>=e; i++)
{
sum1=sum2;
sum2*=-x*x/((2*i)*(2*i+1));
}
cout<<1/sum2<<endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCWRvdWJsZSB4LCBlOwoJY2luPj54Pj5lOwoJZG91YmxlIHN1bTE9eDsgLy8g0LTQu9GPIGk9MAoJZG91YmxlIHN1bTI9LXgqeCp4LzY7IC8vINC00LvRjyBpPTEKCWZvciAoaW50IGk9MjsgYWJzKDEvc3VtMi0xL3N1bTEpPj1lOyBpKyspCgl7CgkJc3VtMT1zdW0yOwoJCXN1bTIqPS14KngvKCgyKmkpKigyKmkrMSkpOyAKCX0KCWNvdXQ8PDEvc3VtMjw8ZW5kbDsKCXJldHVybiAwOwp9