#include #include #include #include using namespace std; int main(){ double a,b,c; cin >> a >> b >> c; double d = (b*b) - (4.0*a*c); if(d < 0.0){ cout << "imaginary" << endl; } else if(d == 0.0){ cout << fixed << setprecision(5) << ((-1.0 * b) + sqrt(d))/(2.0*a) << endl; } else{ double solution1 = ((-1.0 * b) + sqrt(d))/(2.0*a); double solution2 = ((-1.0 * b) - sqrt(d))/(2.0*a); cout << fixed << setprecision(5) << min(solution1,solution2) << " " << max(solution1,solution2) << endl; } }