#include using namespace std; int main() { int64_t a, b, c, det; cin >> a >> b >> c; assert(-1000000000 <= a && a <= 1000000000); assert(-1000000000 <= b && b <= 1000000000); assert(-1000000000 <= c && c <= 1000000000); det = b * b - 4 * a * c; cout << setprecision(17); if (a == 0) { } else { if (det < 0) { cout << "imaginary" << endl; } else if (det == 0) { cout << (double) -b / (2 * a) << endl; } else { double s = sqrt((double) det); if (b > 0) { double x1 = (-b - s) / (2 * a), x2 = (2 * c) / (-b - s); cout << min(x1, x2) << " "; cout << max(x1, x2) << endl; } else { double x1 = (2 * c) / (-b + s), x2 = (-b + s) / (2 * a); cout << min(x1, x2) << " "; cout << max(x1, x2) << endl; } } } }