#include using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; long long A = 2; long long B = a - c; long long C = b - d; long long D = B * B - 4 * A * C; if( D < 0 ) cout << "No" << endl; else if( D == 0 ) cout << "Yes" << endl; else { double x0 = ( -B + sqrt( (double)D ) ) / (2 * A); double x1 = ( -B - sqrt( (double)D ) ) / (2 * A); double y0 = x0 * x0 + a * x0 + b; double y1 = x1 * x1 + a * x1 + b; double p = y1 - y0; if( x1 == x0 || p == 0 ) p = 0; else p /= x1 - x0; double q = y0 - p * x0; cout << fixed << setprecision(12) << p << " " << q << endl; } }