#include #include #include #include #include #include int main() { /* input */ long a, b, c, d; scanf( "%ld %ld %ld %ld", &a, &b, &c, &d ); /* process */ long check = ( a - c ) * ( a - c ) - 8 * ( b - d ); /* output */ if ( check < 0 ) { printf( "No\n" ); } else if ( check == 0 ) { printf( "Yes\n" ); } else { double x_1 = ( - ( a - c ) / 2.0 - std::sqrt( check / 4.0 ) ) / 2; double x_2 = ( - ( a - c ) / 2.0 + std::sqrt( check / 4.0 ) ) / 2; double p = ( ( x_1 * x_1 + a * x_1 + b ) - ( x_2 * x_2 + a * x_2 + b ) ) / ( x_1 - x_2 ); double q = ( x_1 * x_1 + a * x_1 + b ) - p * x_1; printf( "%.7lf %.7lf\n", p, q ); } return 0; }