#include #include #include using namespace std; int main(){ int a,b,c;cin>>a>>b>>c; if(c == 0){ if(a < 0){ cout << fixed << setprecision(10) << (double)0 << " " << (double)b/(-(double)a) << endl; }else{ cout << fixed << setprecision(10) << (double)b/(-(double)a) << " " << (double)0 << endl; } }else 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; } }