#include #define rep(i,n) for(int i=0; i<(int)(n); i++) using namespace std; using LL = long long; using P = pair; int main(){ double a, b, c; cin >> a >> b >> c; int D=b*b-4*a*c; double d=b*b-4*a*c; double x=-b/(2*a); cout << fixed << setprecision(10); if(D<0) cout << "imaginary" << endl; else if(D==0) cout << x << endl; else cout << x-sqrt(d)/(2*a) << " " << x+sqrt(d)/(2*a) << endl; return 0; }