#include #include #include #include #include #include #include #include #include #include #define mkp make_pair #define mkt make_tuple #define rep(i,n) for(int i = 0; i < (n); ++i) #define all(v) v.begin(),v.end() using namespace std; typedef long long ll; const ll MOD=1e9+7; template void chmin(T &a,const T &b){if(a>b) a=b;} template void chmax(T &a,const T &b){if(a>A>>B>>C; int D=B*B-4*A*C; if(D<0){ cout<<"imaginary"< ans; if(D==0) ans.push_back(-B/(long double)(2*A)); else{ ans.push_back((-B-sqrt(D))/(long double)(2*A)); ans.push_back((-B+sqrt(D))/(long double)(2*A)); } for(auto d:ans) cout<