#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; if (b * b - 4 * a * c < 0) { cout << "imaginary" << endl; } else { long double x = (-b + sqrt(b * b - 4 * a * c)) / 2 * a; long double y = (-b - sqrt(b * b - 4 * a * c)) / 2 * a; if (x == y) { cout << fixed << setprecision(16) << x << endl; } else { cout << fixed << setprecision(16) << x << " " << y << endl; } } return 0; }