#include using namespace std; #define int long long typedef pair P; int INF = 1e16+7; int mod = 1e9+7; int dx[4] = {1, 0, -1, 0}; int dy[4] = {0, 1, 0, -1}; signed main() { long double a,b,c; cin >> a >> b >> c; cout << fixed << setprecision(20); if(b*b-4*a*c < 0) { cout << "imaginary" << endl; return 0; } if((-b-sqrt(b*b-4*a*c))/2*a == (-b+sqrt(b*b-4*a*c))/2*a) { cout << (-b+sqrt(b*b-4*a*c))/2*a << endl; return 0; } cout << min((-b-sqrt(b*b-4*a*c))/2*a,(-b+sqrt(b*b-4*a*c))/2*a) << " " << min((-b-sqrt(b*b-4*a*c))/2*a,(-b+sqrt(b*b-4*a*c))/2*a) << endl; }