#include #define rep(i,n) for(int i=(0);i<(n);i++) using namespace std; typedef long long ll; template bool chmax(T &a, const T &b) { if (a bool chmin(T &a, const T &b) { if (a>b) { a=b; return 1; } return 0; } int main(){ cin.tie(0); ios::sync_with_stdio(false); int a, b, c; cin >> a >> b >> c; int d = b * b - 4 * a * c; if(d < 0){ cout << "imaginary" << endl; }else{ double aa = (double) a; double bb = (double) b; double cc = (double) c; double x = (-bb - sqrt(bb * bb - 4 * aa * cc)) / (2 * aa); double y = (-bb + sqrt(bb * bb - 4 * aa * cc)) / (2 * aa); cout << fixed << setprecision(10); if(d == 0){ cout << x << endl; }else{ cout << x << " " << y << endl; } } }