#include using namespace std; using ll = long long; using ld = double; constexpr char newl = '\n'; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); ld a, b, c; cin >> a >> b >> c; ld hoge = b * b - 4 * a * c; if (hoge < 0) { cout << "imaginary\n"; return 0; } else if (hoge == 0) { cout << (ld)(-b) / (2 * a) << newl; return 0; } ld sq = sqrt((ld)hoge); ld ans1 = -b - sq, ans2 = -b + sq; ans1 /= 2 * a; ans2 /= 2 * a; cout << fixed << setprecision(12) << ans1 << " "; cout << fixed << setprecision(12) << ans2 << newl; return 0; }