#include using namespace std; int main() { long double a, b, c; cin >> a >> b >> c; long double d = b * b - 4 * a * c; if (d < 0) { cout << "imaginary" << "\n", 0; } else if (d == 0) { cout << fixed << setprecision(4) << (-b / (2 * a)) << "\n"; } else { long double x = ((-b + sqrt(d)) / (2 * a)); long double y = ((-b - sqrt(d)) / (2 * a)); if (x > y) swap(x, y); cout << fixed << setprecision(4) << x << " "; cout << fixed << setprecision(4) << y << "\n"; } }