import java.util.Scanner;

public class quadratic1 {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);

		System.out.print("Enter the coefficients a, b and c for the equation.");
		double a = input.nextDouble();
		double b = input.nextDouble();
		double c = input.nextDouble();

		if (a == 0) {
			System.out.println("This is not a quadratic equation");
		} else {
			double D = b * b - 4 * a * c;

			if (D > 0) {
				double x1 = ( -b + Math.sqrt(D)) / (2 * a);
				double x2 = ( -b - Math.sqrt(D)) / (2 * a);
				System.out.println(" Two real solutions: x1 = " + x1 +  ", x2 = " + x2);
			} else if (D == 0) {
				double x = -b / (2 * a);
				System.out.println("One real solution x =" + x);
			} else {
				System.out.println("No real solutions");
			}
		}

		input.close();
	}
}
