import math

def main():
    a = int(input("Da el valor de a: "))
    b = int(input("Da el valor de b: "))
    c = int(input("Da el valor de c: "))

    if a==0 and b==0:
        print("No tiene solucion")
    elif a==0:
        raiz = -c/b
        print(raiz)
    else: 
        discrim = b**2 - 4 * a * c
        if discrim < 0:
            print("Raices complejas")
        elif (discrim) >0:
            x1 = (-b + math.sqrt(discrim)) / 2 * a
            x2 = (-b - math.sqrt(discrim))/ 2 * a
            print(x1)
            print(x2)
        else:
            x = -b / 2 * a
            print(x)
        
if __name__ == '__main__':
    main()

