import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone
{
{
Scanner in
= new Scanner
(System.
in); double x, eps, left, right, d, s;
int n=0;
x = in.nextDouble();
eps = in.nextDouble();
right=x;
s=x;
while(d>eps)
{
n++;
s*=(-1)*x*x;
right+=s/(2*n+1);
}
System.
out.
print("left="+left
+" right="+right
+" n="+n
+" d="+d
); }
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJU2Nhbm5lciAgaW4gPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwogICAgCWRvdWJsZSB4LCBlcHMsIGxlZnQsIHJpZ2h0LCBkLCBzOwogICAgCWludCBuPTA7CiAgICAJeCA9IGluLm5leHREb3VibGUoKTsKICAgIAllcHMgPSBpbi5uZXh0RG91YmxlKCk7CgkgICAgbGVmdD1NYXRoLmF0YW4oeCk7CgkgICAgcmlnaHQ9eDsKCSAgICBkPU1hdGguYWJzKGxlZnQtcmlnaHQpOwoJICAgIHM9eDsKCQl3aGlsZShkPmVwcykKCQl7CgkJCW4rKzsKCQkJcyo9KC0xKSp4Kng7CgkJCXJpZ2h0Kz1zLygyKm4rMSk7CgkJCWQ9TWF0aC5hYnMobGVmdC1yaWdodCk7CgkJfQoJCVN5c3RlbS5vdXQucHJpbnQoImxlZnQ9IitsZWZ0KyIgcmlnaHQ9IityaWdodCsiIG49IituKyIgZD0iK2QpOyAKCX0KfQ==