#include<iomanip> #include<cmath> #include<iostream> using namespace std; int main() { float a,b,c; float d,e; while(cin>>a>>b>>c) { e=-b/(2*a); if(e==0) e=0.00; d=(b*b)-(4*a*c); if(a==0) cout<<"Not quadratic equation"<<endl; else if(a!=0) { if(d==0) { cout << fixed << setprecision(2); cout<<"x1=x2="<<e<<endl; } else if(d>0) { cout << fixed << setprecision(2); cout<<"x1="<<e-sqrt(d)/(2*a)<<";"<<"x2="<<e+sqrt(d)/(2*a)<<endl; } else { cout << fixed << setprecision(2); cout<<"x1="<<e<<"-"<<sqrt(fabs(d))/(2*a)<<"i"<<";"<<"x2="<<e<<"+"<<sqrt(fabs(d))/(2*a)<<"i"<<endl; } } } return 0; }