#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(){ int a, b, c; cin >> a >> b >> c; int rt=b*b-4*a*c; if(rt<0){ cout << "imaginary" << endl; } else{ if(rt==0){ cout << setprecision(15) << (double)(-b)/(2*a) << endl; } else{ double ans1=((double)-b-sqrt(rt))/(2*a); double ans2=((double)-b+sqrt(rt))/(2*a); cout << setprecision(15) << ans1 << ' ' << ans2 << endl; } } return 0; }