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