#include<iostream>
#include<cmath>
using namespace std;
int main()
{
	float a,b,c,d,root1,root2;
	cout<<"Enter 3 coefficients";
	cin>>a>>b>>c;
	d=b*b-4*a*c;
	if(d>0)
	{
		root1=(-b+sqrt(d))/(2*a);
		root2=(-b+sqrt(d))/(2*a);
		cout<<"roots are real and unequal";
		cout<<root1<<root2;
	}
	else if(d==0)
	{
		root1=-b/(2*a);
		cout<<"roots are real and unequal";
		cout<<root1;
	}
	else
	{
		cout<<"roots are complex and imaginary";
	}
	return 0;
}