#include using namespace std; int main() { long long a, b, c; scanf("%lld%lld%lld", &a, &b, &c); if (a < 0)a = -a, b = -b, c = -c; long double d = b * b - 4.0L * a * c; if (abs(d) < 1e-12) printf("%.15Lf\n", -b / 2.0L / a); else if (d < 0) puts("imaginary"); else { long double x, y; if (b > 0) { x = (-b - sqrt(d)) / 2 / a; y = c * 1.0L / a / x; } else { y = (-b + sqrt(d)) / 2 / a; x = c * 1.0L / a / y; } printf("%.15Lf %.15Lf\n", x, y); } return 0; }