a, b = io.read("*n", "*n") c, d = io.read("*n", "*n") det = (a - c) * (a - c) - 8 * (b - d) if det < 0 then print("No") elseif det == 0 then print("Yes") else e = math.sqrt(det) / 4 f = (c - a) / 4 x1, x2 = f - e, f + e y1 = x1 * x1 + a * x1 + b y2 = x2 * x2 + a * x2 + b p = (y2 - y1) / (x2 - x1) q = y1 - x1 * p print(p .. " " .. q) end