#include using namespace std; using ll = long long; using ul = unsigned long; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int a, b, c; cin >> a >> b >> c; string res; int r = b * b - 4 * a * c; if (r < 0) res = "imaginary"; else if (r == 0) { double ans = (-b + sqrt(r)) / (2 * a); stringstream ss; ss << fixed << setprecision(15) << ans; res = ss.str(); } else { double ans1 = (-b + sqrt(r)) / (2 * a); double ans2 = (-b - sqrt(r)) / (2 * a); stringstream ss; ss << fixed << setprecision(15) << min(ans1, ans2) << " " << max(ans1, ans2); res = ss.str(); } cout << res << "\n"; return 0; }