#include using namespace std; #define rep(i,n) for(int i = 0; i < (int)(n); i++) #define repr(i,n) for(int i = (int)(n); i >= 0; i--) #define all(v) v.begin(),v.end() typedef long long ll; int main(){ double a,b,c; cin >> a >> b >> c; int A; int B; int C; if (a + 0.3 < 0.4 && a + 0.3 > 0.2){ A = 0; } else if (a + 0.3 > 0) A = int(a + 0.3); else A = int(a - 0.3); if (b + 0.3 < 0.4 && b + 0.3 > 0.2){ B = 0; } else if (b + 0.3 > 0) B = int(b + 0.3); else B = int(b - 0.3); if (c + 0.3 < 0.4 && c + 0.3 > 0.2){ C = 0; } else if (c + 0.3 > 0) C = int(c + 0.3); else C = int(c - 0.3); if (B * B - 4 * A * C < 0){ cout << "imaginary" << endl; } else if (B * B - 4 * A * C == 0){ cout << setprecision(10) << ((-1 * b) / (2 * a)) << endl; } else{ double X = sqrt(b * b - 4 * a * c); cout << setprecision(10) << ((-1 * b - X) / (2 * a)) << " " << ((-1 * b + X) / (2 * a)) << endl; } }