#include #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; typedef long long ll; int main() { int a, b, c, D; cin >> a >> b >> c; D = b * b - 4 * a * c; if (D < 0) { cout << "imaginary\n"; return 0; } if (D == 0) { cout << fixed << setprecision(16) << (0.0 - b) / 2 / a << "\n"; return 0; } cout << fixed << setprecision(16) << (0.0 - b - sqrt(1.0 * D)) / 2 / a << " " << (0.0 - b + sqrt(1.0 * D)) / 2 / a << "\n"; }