#include <bits/stdc++.h>
#define rep(i,n) for(int i=0; i<(int)(n); i++)

using namespace std;
using LL = long long;
using P = pair<int,int>;

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);
	if(D<0) cout << "imaginary" << endl;
	else if(D==0) cout << x << endl;
	else{
		double r=sqrt(d)/(2*a);
		if(a>0) cout << fixed << setprecision(10) << x-r << " " << x+r << endl;
		else cout << fixed << setprecision(10) << x+r << " " << x-r << endl;
	}

	return 0;
}