#include using namespace std; using ll=long long; int main() { ll a,b,c; cin >> a >> b >>c; ll D = b*b-4*a*c; if(D<0){ cout << "imaginary" << endl; return 0; } if(D==0){ cout << double(-b)/double(2*a) << endl; return 0; } vector ans; ans.push_back((double(-b) - sqrt(D))/double(2*a)); ans.push_back((double(-b) + sqrt(D))/double(2*a)); sort(ans.begin(),ans.end()); cout << setprecision(10)<< ans[0]<<" " <