#include #include #include #include #include #include #include #include #include #include #include using namespace std; using int64 = long long; struct aaa{aaa(){cin.tie(nullptr); ios::sync_with_stdio(false); cout<> a >> b >> c; int d = b*b - 4*a*c; if (d < 0) { cout << "imaginary" << endl; return 0; } if (d == 0) { cout << -b / (2*a) << endl; return 0; } double ans1 = (-b + sqrt(b*b - 4*a*c)) / (2*a); double ans2 = (-b - sqrt(b*b - 4*a*c)) / (2*a); cout << min(ans1, ans2) << " " << max(ans1, ans2) << endl; }