#include <iostream>
#include <math.h>
using namespace std;
int main() {
double x, e; //Переменная и погрешность
scanf("%lf %le", &x, &e);
double curr = (1./4.)*log((1.+x)/(1.-x)) + (1./2.)*atan(x); //Левая часть выражения
int count = 0; //Счетчик
double y = x; //i-тый слагаемое
double sum = x; //Сумма
for(; fabs(sum-curr) > e; count++){
double n = (4.*count+1.)/(4.*count+5.);
y = y*x*x*x*x*n;
sum += y;
}
count++;
printf("%d", count);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bWF0aC5oPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cglkb3VibGUgeCwgZTsgLy/Qn9C10YDQtdC80LXQvdC90LDRjyDQuCDQv9C+0LPRgNC10YjQvdC+0YHRgtGMCglzY2FuZigiJWxmICVsZSIsICZ4LCAmZSk7Cglkb3VibGUgY3VyciA9ICgxLi80LikqbG9nKCgxLit4KS8oMS4teCkpICsgKDEuLzIuKSphdGFuKHgpOyAgLy/Qm9C10LLQsNGPINGH0LDRgdGC0Ywg0LLRi9GA0LDQttC10L3QuNGPCglpbnQgY291bnQgPSAwOyAvL9Ch0YfQtdGC0YfQuNC6Cglkb3VibGUgeSA9IHg7IC8vaS3RgtGL0Lkg0YHQu9Cw0LPQsNC10LzQvtC1Cglkb3VibGUgc3VtID0geDsgLy/QodGD0LzQvNCwCglmb3IoOyBmYWJzKHN1bS1jdXJyKSA+IGU7IGNvdW50KyspewoJCWRvdWJsZSBuID0gKDQuKmNvdW50KzEuKS8oNC4qY291bnQrNS4pOwoJCXkgPSB5KngqeCp4KngqbjsKCQlzdW0gKz0geTsKCX0KCWNvdW50Kys7CglwcmludGYoIiVkIiwgY291bnQpOwoJcmV0dXJuIDA7Cn0=