#include #define rep(i,n) for(int i = 0; i < (int)(n); i++) #define rrep(ri,n) for(int ri = (int)(n-1); ri >= 0; ri--) #define rep2(i,x,n) for(int i = (int)(x); i < (int)(n); i++) #define repit(itr,x) for(auto itr = x.begin(); itr != x.end(); itr++) #define rrepit(ritr,x) for(auto ritr = x.rbegin(); ritr != x.rend(); ritr++) #define ALL(x) x.begin(), x.end() using ll = long long; using namespace std; typedef long double ld; const ld eps = 1.0e-10; // 許容される誤差 ld mysqrtl(ld x) { ld a = sqrt((double)x); // 近似値 do { a = (a + x/a) / 2.0L; } while (fabsl(x - a*a) > eps); return a; } int main(){ int ia, ib, ic, id; long double a, b, c, d; cin >> ia >> ib >> ic >> id; if(id - ib < 0){ cout << "No" << endl; return 0; }else if(id - ib == 0){ cout << "Yes" << endl; return 0; } a = ia; b = ib; c = ic; d = id; long double r = (c-a) * (c-a) + 8*(d-b); long double sq = mysqrtl(r); long double xa = ((c - a) + sq)/4; long double xb = ((c - a) - sq)/4; long double ya = xa*xa + a*xa + b; long double yb = xb*xb + a*xb + b; long double p = (yb-ya)/(xb-xa); long double q = -p * xa + ya; cout << fixed << setprecision(15) << p << " " << q << endl; return 0; }