#include using namespace std; int main() { int a,b,c; cin >> a >> b >> c; int d = 2*a; int e = -b; int f = b*b-4*a*c; if(f < 0) { cout << "imaginary" << endl; } else if(f == 0) { cout << fixed << setprecision(10) << (double)(e)/d << endl; } else { double ans1 = ((double)(e)+sqrt(f))/d; double ans2 = ((double)(e)-sqrt(f))/d; cout << fixed << setprecision(10) << min(ans1,ans2) << " " << max(ans1,ans2) << endl; } }