
import math
import sys
import os
import math


# control+alt+L to clean up your code
def calculate(a, b, c):
    discriminant = b ** 2 - 4 * a * c
    if discriminant < 0:
        return None, None
    x1 = (-b + math.sqrt(discriminant)) / 2 * a
    x2 = (-b - math.sqrt(discriminant)) / 2 * a
    return x1, x2


def main():
    a = float(input("a: "))
    b = float(input("b: "))
    # print(type(b))
    c = float(input("c: "))
    x1, x2 = calculate(a, b, c)
    print(f"x1={x1}, x2={x2}")
    # return value of exit status
    return os.EX_OK


if __name__ == "__main__":
    # exit status sent to the os
    # 0 means OK
    sys.exit(main())