#include "bits/stdc++.h" using namespace std; // コンテスト中のみ //#define int long long #define ll long long #define rep(i,n) for(int i = 0; i < (n); i++) #define P pair #define ld long double ll INF = (1LL << 60); int MOD = 1000000007; signed main() { ios::sync_with_stdio(false); cin.tie(nullptr); cout << fixed << setprecision(15); ll a, b, c; cin >> a >> b >> c; if (b * b - 4 * a * c <= 0) { cout << "imaginary" << endl; } else if (b*b - 4 * a*c == 0) { ld ansa = (-b + sqrt(b * b - 4 * a * c)) / 2 * a; cout << ansa << endl; } else { ld ansa = (-b + sqrt(b * b - 4 * a * c)) / 2 * a; ld ansb = (-b - sqrt(b * b - 4 * a * c)) / 2 * a; if (ansa > ansb)swap(ansa, ansb); cout << ansa << " " << ansb << endl; } return 0; }