#include double sqrt(double a) { double min, mid, max; min = 0; for (max = 1; max * max < a; max *= 2); int i; for (i = 0; i < 100; i++) { mid = (max + min) / 2; if (mid * mid < a) min = mid; else max = mid; } return max; } int main() { int a, b, c; scanf("%d %d%d", &a, &b, &c); int d = b * b - 4 * a * c; if (d < 0) printf("imaginary\n"); else if (d == 0) printf("%.20lf\n", -b / 2.0 / a); else printf("%.20lf %.20lf\n", (-b - sqrt((double)d)) / 2.0 / a, (-b + sqrt((double)d)) / 2.0 / a); return 0; }