#include using namespace std; typedef long long int ll; typedef pair P; typedef vector VI; typedef vector VVI; const ll MOD = 1000000007; const ll INF = 1e18; #define REP(i, n) for(int i = 0; i < n; i++) #define ALL(v) v.begin(), v.end() int main(){ double a, b, c; cin >> a >> b >> c; double rt=b*b-4*a*c; if(rt<0){ cout << "imaginary" << endl; } else{ if(rt==0){ cout << (-b)/(2*a) << endl; } else{ double ans1=(-b-sqrt(rt))/(2*a); double ans2=(-b+sqrt(rt))/(2*a); cout << ans1 << ' ' << ans2 << endl; } } return 0; }