#include using namespace std; #define REP(i,n) for(int i=0; i<(int)(n); i++) #define FOR(i,b,e) for (int i=(int)(b); i<(int)(e); i++) #define ALL(x) (x).begin(), (x).end() const double PI = acos(-1); int main() { ios_base::sync_with_stdio(0); cin.tie(0); int a, b, c; cin >> a >> b >> c; double d = b * b - 4 * a * c; if (d < 0) cout << "imaginary" << endl; else if (d == 0) cout << fixed << setprecision(12) << (-b) / (2 * a) << endl; else { double alpha = (-b + sqrt(d)) / (2 * a); double beta = (-b - sqrt(d)) / (2 * a); cout << fixed << setprecision(12) << min(alpha, beta) << " " << max(alpha, beta) << endl; } return 0; }