#include using namespace std; void fast_io() { ios::sync_with_stdio(false); std::cin.tie(nullptr); } int main() { fast_io(); int a, b, c; cin >> a >> b >> c; if (a < 0) { a = -a; b = -b; c = -c; } int d = b * b - 4 * a * c; cout << setprecision(16) << fixed; if (d < 0) { cout << "imaginary" << endl; } else if (d == 0) { cout << -b / (2.0 * a) << endl; } else { cout << (-b - sqrt(d)) / (2.0 * a) << " " << (-b + sqrt(d)) / (2.0 * a) << endl; } }