#include #define rep(i,n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair; int main() { double a, b, c; cin >> a >> b >> c; double d = b * b - 4 * a * c; if (d < 0) cout << "imaginary" << endl; else if (d == 0) { double x = - b / 2 / a; printf("%.5f\n", x); } else { double x1 = (- b + sqrt(d)) / 2 / a; double x2 = (- b - sqrt(d)) / 2 / a; printf("%.5f %.5f\n", min(x1, x2), max(x1, x2)); } return 0; }