vystup = "Koreny jsou x1={0} a x2={1}" vystup = "Kořeny rovnice {2}x^2 + {3}x + {4} = 0\n jsou x1={0} a x2={1}" a, b, c = input().split() a, b, c = int(a), int(b), int(c) d = b*b - 4*a*c x1, x2 = (-b + d**(1/2))/(2*a), (-b - d**(1/2))/(2*a) print( f"Koreny jsou x1={x1} a x2={x2}" ) print( vystup.format(x1, x2, a, b, c) )