#include #include using namespace std; using namespace atcoder; #define ll long long #define rep(i,n) for (int i = 0; i < (n); i++) #define coutf(f) cout << fixed << setprecision(f) #define all(v) (v).begin(), (v).end() #define rall(v) (v).rbegin(), (v).rend() int main() { double a, b, c; cin >> a >> b >> c; double D = b * b - 4 * a * c; if (D > 0) { coutf(10) << (-b - sqrt(D)) / (2 * a) << " " << (-b + sqrt(D)) / (2 * a) << endl; } else if (D == 0) { coutf(10) << -b / (2 * a) << endl; } else { cout << "imaginary" << endl; } return 0; }