#include <bits/stdc++.h> using namespace std; template <typename T> bool chmax(T &u, const T z) { if (u < z) {u = z; return true;} else return false; } template <typename T> bool chmin(T &u, const T z) { if (u > z) {u = z; return true;} else return false; } #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define ll long long int main(){ double a,b,c; cin>>a>>b>>c; double x1,x2; double y; y=b*b-(double)4*a*c; if(y<0){ cout<<"imaginary"<<endl; return 0; } x1=((double)-1*b+sqrt(b*b-(double)4*a*c))/((double)2*a); x2=((double)-1*b-sqrt(b*b-(double)4*a*c))/((double)2*a); if(y==0){ x1=(double)-1*b/((double)2*a); cout<<fixed<<setprecision(12)<<x1<<endl; return 0; } cout<<fixed<<setprecision(12)<<min(x1,x2)<<" "; cout<<fixed<<setprecision(12)<<max(x1,x2)<<endl; return 0; }