#include namespace solver{ void solve(){ int a, b, c; std::cin >> a >> b >> c; int D = b * b - 4 * a * c; std::cout << std::fixed << std::setprecision(15); if(D < 0){ std::cout << "imaginary" << "\n"; }else if(D == 0){ double x = -(double)b / (2.0 * a); std::cout << x << "\n"; }else{ double x1 = (-(double)b - std::sqrt(D)) / (2.0 * a); double x2 = (-(double)b + std::sqrt(D)) / (2.0 * a); std::cout << x1 << " " << x2 << "\n"; } } } int main(){ solver::solve(); return 0; }