#include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; int main(){ ll a,b,c; cin >> a >> b >> c; if(b*b - 4*a*c < 0)cout << "imaginary" << endl; else{ double res1 = 0; double res2 = 0; res1 = -1*b + sqrt(b*b - 4*a*c); res1 /= 2*a; res2 = -1*b - sqrt(b*b - 4*a*c); res2 /= 2*a; if(res1 == res2)cout << fixed << setprecision(10) << res1 << endl; else if(res1 < res2)cout << fixed << setprecision(10) << res1 << " " << res2 << endl; else cout << fixed << setprecision(10) << res2 << " " << res1 << endl; } }