#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; } cout << setprecision(10)<< (double(-b) - sqrt(D))/double(2*a) <<" " <<(double(-b) + sqrt(D))/double(2*a) << endl; return 0; }