#include <iostream>
#include <cmath>
using namespace std;

int main() {
	double a, b, c;
	cout << "Enter coefficients for the equation.";
	cin >> a >> b >> c;

	if (a == 0) {
		cout << "This is not a quadratic equation" << endl;
	} else {
		double D = b*b - 4*a*c;
		if (D > 0) {
			double x1 = (-b + sqrt(D)) / (2*a);
			double x2 = (-b - sqrt(D)) / (2*a);
			cout << "Two solutions: x1 =" << x1 << ", x2 = " << x2 << endl;
		} else if (D == 0)  {
			double x = -b / (2*a);
			cout << "One solution: x = " << x << endl;
		} else {
			cout << "There are no real solutions " << endl;
		}
	}

	return 0;

}
