#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(){ int 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{ double r=sqrt(d)/(2*a); if(a>0) cout << x-r << " " << x+r << endl; else cout << x+r << " " << x-r << endl; } return 0; }