#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define llint long long #define inf 1e18 #define rep(x, s, t) for(llint (x) = (s); (x) < (t); (x)++) #define Rep(x, s, t) for(llint (x) = (s); (x) <= (t); (x)++) #define chmin(x, y) (x) = min((x), (y)) #define chmax(x, y) (x) = max((x), (y)) using namespace std; typedef pair P; llint a, b, c; int main(void) { //ios::sync_with_stdio(0); //cin.tie(0); cin >> a >> b >> c; llint d = b * b - 4 * a * c; if(d < 0){ cout << "imaginary" << endl; return 0; } if(d == 0){ double ans = -b / (2.0*a); printf("%.11f\n", ans); return 0; } double ans = (-b - sqrt(d)) / (2.0*a), ans2 = (-b + sqrt(d)) / (2.0*a); if(ans > ans2) swap(ans, ans2); printf("%.11f %.11f\n", ans, ans2); return 0; }