#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int main() { long double a, b, c; cin >> a >> b >> c; long double f = 4, z = 0, t = 2; if (b * b - f * a * c < z) { cout << "imaginary" << endl; } else if (b * b - f * a * c == z) { long double x = (-b + sqrtl(b * b - f * a * c)) / t * a; cout << fixed << setprecision(16) << x << endl; } else { long double x = (-b + sqrtl(b * b - f * a * c)) / t * a; long double y = (c / a) / x; if (x > y) { swap(x, y); } cout << fixed << setprecision(16) << x << " " << y << endl; } return 0; }