//#pragma GCC optimize ("O3") //#pragma GCC target ("avx") #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long int ll; typedef unsigned long long ull; mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count()); ll myRand(ll B) { return (ull)rng() % B; } constexpr ll mod=1e9+7; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); ll a,b,c; cin >> a >> b >> c; if(b*b-4*a*c<0){ printf("imaginary\n"); } else if(b*b-4*a*c==0){ double res=-b/2.0/a; printf("%.9f\n",res); } else{ double res=(-b-sqrt(b*b-4*a*c))/2.0/a; double res2=-2.0*c/(b+sqrt(b*b-4*a*c)); printf("%.9f %.9f\n",res,res2); } }