import java.util.*;
import java.math.*;
public class formula
{
    static Scanner stdin = new Scanner(System.in);
    public static void main(String[] args)
    {
        //Question 6

        double aValue, bValue, cValue, squareValue, determinantValue, squareRootValue, root1Value, root2Value;

        System.out.printf("Please provide the following values:%n");
        System.out.printf("a: ");
        aValue = Double.parseDouble(stdin.nextLine());
        System.out.printf("b: ");
        bValue = Double.parseDouble(stdin.nextLine());
        System.out.printf("c: ");
        cValue = Double.parseDouble(stdin.nextLine());

        squareValue = bValue * bValue;
        determinantValue = squareValue - (4 * aValue * cValue);

        if (determinantValue < 0) {
            System.out.printf("There are no real roots.");
            System.exit(0);
        }

        squareRootValue = Math.sqrt(determinantValue);
        root1Value = (-bValue + squareRootValue) / (2 * aValue);
        root2Value = (-bValue - squareRootValue) / (2 * aValue);
        System.out.printf("The root values are: %f and %f", root1Value, root2Value);

    }
}