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