#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using ll=long long; template using V = vector; template using P = pair; using vll = V; using vvll = V; #define ALL(v) v.begin(),v.end() template < class T > inline bool chmax(T& a, T b) {if (a < b) { a=b; return true; } return false; } template < class T > inline bool chmin(T& a, T b) {if (a > b) { a=b; return true; } return false; } #define DEBUG_VLL(vec) REP(sz, vec.size()) std::cerr<> a >> b >> c; if (b * b - 4 * a * c < 0) cout << "imaginary\n"; else if (b * b - 4 * a * c == 0) cout << -b / (2 * a) << '\n'; else { cout << (-b - sqrt(b * b - 4 * a * c)) / (2 * a) << ' ' << (-b + sqrt(b * b - 4 * a * c)) / (2 * a) << '\n'; } return 0; }