#include using namespace std; #define ll long long #define MoD 1e9 + 7 #define clear(a) memset(a, 0, sizeof(a)) #define fo(i, a, b) for(int i = a; i < b; i++) //#define re(i, a, b) for(int i = b; i > a; i--) #define pb(a) push_back(a) template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a> a>>b>>c; int dis= b*b-4*a*c; cout.precision(20); if(dis>0) cout << (-b-sqrt(dis))/(2*a) <<' '<< (-b+sqrt(dis))/(2*a) << '\n'; else if(dis==0) cout << (-b)/(2*a) << '\n'; else std::cout << "imaginary" << '\n'; } int main() { ios::sync_with_stdio(0); cin.tie(0); int t=1; for(int i=1; i<=t; ++i) { solve(); } }