#include #define INF 2000000000000000000 #define ll long long using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll a, b, c; cin >> a >> b >> c; ll D = b * b - 4 * a * c; if (D < 0) { cout << "imaginary" << "\n"; } else if (D == 0) { double ans = -b; ans /= 2 * a; cout << ans << "\n"; } else { double ans = -b - pow(D, 0.5); ans /= 2 * a; cout << ans << " "; ans = -b + pow(D, 0.5); ans /= 2 * a; cout << ans << "\n"; } }