#include using namespace std; #ifdef LOCAL #include "settings/debug.cpp" #else #define Debug(...) void(0) #endif #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using ull = unsigned long long; int main() { cin.tie(nullptr)->sync_with_stdio(false); int a, b, c; cin >> a >> b >> c; int d = b * b - 4 * a * c; cout << fixed << setprecision(15); if (d > 0) { double x = (double) (-b + sqrt(d)) / (2 * a); double y = (double) (-b - sqrt(d)) / (2 * a); cout << min(x, y) << ' ' << max(x, y) << '\n'; } if (d == 0) { cout << (double) -b / (2 * a) << '\n'; } if (d < 0) { cout << "imaginary" << '\n'; } return 0; }