#include using namespace std; using ll = long long; using ld = long double; constexpr char newl = '\n'; ld calcSqrt(int hoge) { ld ok = 0, ng = hoge; for (int i = 0; i < 100; i++) { ld mid = (ok + ng) / 2; (mid * mid <= hoge ? ok : ng) = mid; } return ok; } int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int a, b, c; cin >> a >> b >> c; int hoge = b * b - 4 * a * c; if (hoge < 0) { cout << "imaginary\n"; return 0; } else if (hoge == 0) { cout << (ld)(-b) / (2 * a) << newl; return 0; } assert(false); ld sq = calcSqrt(hoge); ld ans1 = -b - sq, ans2 = -b + sq; ans1 /= 2 * a; ans2 /= 2 * a; cout << fixed << setprecision(20) << ans1 << " " << ans2 << newl; return 0; }