1. 


import java.util.Scanner;

/**

* @group Lermer Florian, Sayli Hidir, Taskin Umut

* @contact lermer@gmail.de, hidirsayli@hotmail.de taskin_umut@yahoo.de

* @Problem_ID=U10341

* @Link http://icpcres.ecs.baylor.edu/onlinejudge/index.php?option=com_onlinejudge&Itemid=8&category=15&page=show_problem&problem=1282

* @external_help_link http://online-judge.uva.es/board/viewtopic.php?f=20&t=1058&st=0&sk=t&sd=a&sid=ca99548db7a11d738230331897e5504c

*

* @status Accepted

* @Version V1.09

*

* @problematical_issues - Only mathematical Problems *

* @param args

*/

/*

* 1. calculate x=f(0) and y=f(1)

2. if (x > 0 && y > 0) print 'No solution'.

3. if (x < 0 && y < 0) print 'No solution'.

4. if ( x == 0 ) print '0.0000'.

5. if ( y == 0 ) print '1.0000'.

6. You are sure that u have a solution, and calculate it (by your process).

*/

public class Main {



/**

* @param args

*/

private static int u,r,s,t,q,p;

public static void main(String[] args)

{

Scanner sc=new Scanner(System.in);



double x,y;

while(sc.hasNext())

{

p=sc.nextInt();

q=sc.nextInt();

r=sc.nextInt();

s=sc.nextInt();

t=sc.nextInt();

u=sc.nextInt();

x=function(0);

y=function(1);

if (x > 0 && y > 0){ System.out.println("No solution");continue;}

if (x < 0 && y < 0){ System.out.println("No solution");continue;}

if ( x == 0 ){ System.out.println("0.0000");continue;}

if ( y == 0 ){ System.out.println("1.0000");continue;}

else {

x=0.5;

for (int i=0;i<10;i++){

x=x-function(x)/dfunction(x);

}

System.out.printf("%.4f%n",x);



}

}



}



private static double function(double x) {

// return p/pow(E,x) + q*sin(x) + r*cos(x) + s*tan(x) + t*x*x + u;

double se=p/Math.pow(Math.E, x)+q* Math.sin(x)+r*Math.cos(x)+ s*Math.tan(x)+t*x*x+u;

return se;

}

private static double dfunction(double x)

{

// double se=1.0/cos(x);

// se*=se;

// return -p/pow(E,x) + q*cos(x) - r*sin(x) + s*se + t*2*x;

double se=1.0/Math.cos(x);

se*=se;

se=-p/Math.pow(Math.E, x)+q* Math.cos(x)-r*Math.sin(x)+ s*se+t*2*x;

return se;



}



}