#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define repr(i, a, b) for (int i = (int)(a); i < (int)(b); i++) #define rep(i, n) repr(i, 0, n) #define INF 2e9 #define MOD 1000000007 //#define MOD 998244353 #define LINF (long long)4e18 #define jck 3.141592 const double EPS = 1e-10; using ll = long long; using Pi = pair; using Pl = pair; int main(){ cout << fixed << setprecision(6); int a,b,c; cin >> a >> b >> c; if(b*b < 4*a*c){ cout << "imaginary" << endl; } else if(b*b == 4*a*c){ cout << -b/(double)(2*a) << endl; } else{ double ans1 = (-b-sqrt(b*b-4*a*c))/(2*a); double ans2; if(ans1 == 0){ ans2 = -b/(double)(2*a); } else ans2 = c/(ans1*a); cout << ans1 << " " << ans2 << endl; } }