#include #include #include #include #include #include #include using namespace std; using ll = long long; int main() { double a, b, c; cin >> a >> b >> c; b /= a; c /= a; b /= -2; double d = b * b - c; if (abs(d) < 1e-9) { printf("%.15f\n", b); } else if (d < 0) { printf("imaginary\n"); } else { d = sqrt(d); printf("%.15f %.15f\n", b - d, b + d); } return 0; }