#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using lint = long long int; long long int INF = 1001001001001001LL; int inf = 1000000007; long long int MOD = 1000000007LL; double PI = 3.1415926535897932; templateinline void chmin(T1 &a,const T2 &b){if(a>b) a=b;} templateinline void chmax(T1 &a,const T2 &b){if(a> a >> b >> c >> d; int D = (a - c) * (a - c) - 8 * (b - d); if (D == 0) { cout << "Yes" << endl; } else if (D < 0) { cout << "No" << endl; } else { double x1 = (-(a - c) - sqrt((double)D)) / 4.0; double x2 = (-(a - c) + sqrt((double)D)) / 4.0; double y1 = x1 * x1 + a * x1 + b; double y2 = x2 * x2 + a * x2 + b; double p = (y2 - y1) / (x2 - x1); double q1 = y1 - p * x1; double q2 = y2 - p * x2; double q = (q1 + q2) / 2.0; printf("%.10f %.10f\n", p, q); } return 0; }