def makeLinearEquation(x1, y1, x2, y2): return (y1-y2),(x2-x1),(y2-y1)*x1-y1*(x2-x1) def makeY(x): return x**2+a*x+b from fractions import Fraction a,b,c,d = map(int,input().split()) A,B,C = 2,(a-c),(b-d) p,q = 0,0 tmp = B**2-4*A*C if tmp < 0: print("No") elif tmp == 0: print("Yes") else: x1,x2 = (-B+(tmp)**0.5)/(2*A),(-B-(tmp)**0.5)/(2*A) y1,y2 = makeY(x1),makeY(x2) a1 = x1-x2 b1 = y1-y2 c = a1*y1-b1*x1 p = b1/a1 q = c/a1 print(p,q)