#include <iostream>
#include <cmath>
using namespace std;
double f(double x)
{
return 0.25 * (1.0 - 2.0 * x * x * x);
}
int main()
{
double x = 0.11;
double e = 0.00000005;
while(abs(x - f(x)) > e)
x = f(x);
cout << 2.0 * x * x * x + 4.0 * x - 1.0 << endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiAKZG91YmxlIGYoZG91YmxlIHgpCnsKICAgICAgICByZXR1cm4gMC4yNSAqICgxLjAgLSAyLjAgKiB4ICogeCAqIHgpOwp9CiAKaW50IG1haW4oKQp7CiAgICAgICAgZG91YmxlIHggPSAwLjExOwogICAgICAgIGRvdWJsZSBlID0gMC4wMDAwMDAwNTsKICAgICAgICB3aGlsZShhYnMoeCAtIGYoeCkpID4gZSkKICAgICAgICAJeCA9IGYoeCk7CiAgICAgICAgY291dCA8PCAyLjAgKiB4ICogeCAqIHggKyA0LjAgKiB4IC0gMS4wIDw8IGVuZGw7Cn0=