#include using namespace std; typedef long long int ll; typedef pair P; typedef vector VI; typedef vector VVI; const ll MOD = 1000000007; const ll INF = 1e18; #define REP(i, n) for(int i = 0; i < n; i++) #define ALL(v) v.begin(), v.end() int main(){ int a, b, c; cin >> a >> b >> c; int rt=b*b-4*a*c; if(rt<0){ cout << "imaginary" << endl; } else{ if(rt==0){ double ans=(double)(-b)/(2*a); printf("%.16lf\n",ans); } else{ double ans1=((double)-b-sqrt(rt))/(2*a); double ans2=((double)-b+sqrt(rt))/(2*a); printf("%.16lf %.16lf\n",ans1,ans2); } } return 0; }