import java.util.*;
import java.lang.*;
import java.io.*;

class Ideone
{
	static double f(double x)
	{
	   return 9.2*x*x*x+3.3*x*x+4*x-1; 
	}
	
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner  in = new Scanner(System.in);
		double x, eps, x0, x1, x2, d;
		x = in.nextDouble();
		eps = in.nextDouble();
		do{
			x0=x;
			x1=f(x0);
			x2=f(x1);
			d=x0-2*x1+x2;
			if (d!=0)
			{
				x=(x0*x2-x1*x1)/d;
			}
			else break;
    	} 	
    	while(Math.abs(x-x0)>eps);
    	System.out.print(x+" "); 
	}
}