#include <iostream>
#include <cmath>
using namespace std;
int main() {
double x, e;
cin>>x>>e;
double result=1;
double component=1;
for (int i=1; abs(component)>=e; i++)
{
component*=(x/i);
result+=component;
}
cout<<result<<endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCWRvdWJsZSB4LCBlOwoJY2luPj54Pj5lOwoJZG91YmxlIHJlc3VsdD0xOwoJZG91YmxlIGNvbXBvbmVudD0xOwoJZm9yIChpbnQgaT0xOyBhYnMoY29tcG9uZW50KT49ZTsgaSsrKQoJewoJCWNvbXBvbmVudCo9KHgvaSk7CgkJcmVzdWx0Kz1jb21wb25lbnQ7Cgl9Cgljb3V0PDxyZXN1bHQ8PGVuZGw7CglyZXR1cm4gMDsKfQ==