#include typedef long double ld; using namespace std; struct MyIO { MyIO(){ cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(15); } } IO_OI; int main() { ld a,b,c; cin>>a>>b>>c; ld d = b*b-4*a*c; if(d<0) { cout << "imaginary" << endl; return 0; } else if(d==0) { cout << -b/(2*a) << endl; return 0; } cout << (-b-sqrt(d))/(2*a) << " " << (-b+sqrt(d))/(2*a) << endl; return 0; }