#include #define rep(i,n) for(int i=(0);i<(n);i++) using namespace std; typedef long long ll; typedef long double ld; template bool chmax(T &a, const T &b) { if (a bool chmin(T &a, const T &b) { if (a>b) { a=b; return 1; } return 0; } double eps = 1e-10; int main(){ cin.tie(0); ios::sync_with_stdio(false); double a, b, c, d; cin >> a >> b >> c >> d; double han = (a - c) * (a - c) - 8 * (b - d); if(han + eps < 0){ cout << "No" << endl; }else if(fabs(han - 0.0) < eps){ cout << "Yes" << endl; }else{ double x1 = (- (a - c) + sqrt(han)) / 4; double x2 = (- (a - c) - sqrt(han)) / 4; double y1 = x1 * x1 + a * x1 + b; double y2 = x2 * x2 + a * x2 + b; double p = (y2 - y1) / (x2 - x1); double q = -(y2 - y1) / (x2 - x1) * x1 + y1; cout << fixed << setprecision(10); cout << p << " " << q << endl; } }