a,b,c,d=map(int,input().split()) f1=lambda x:x**2+a*x+b f2=lambda x:x**2+c*x+d A,B,C=2,a-c,b-d D=B**2-4*A*C if D<0: print("No") elif D==0: print("Yes") else: x1=(-B-D**0.5)/(2*A) x2=(-B+D**0.5)/(2*A) print((f1(x1)-f1(x2))/(x1-x2),((f1(x1)-f1(x2))/(x1-x2))*(-x1)+f1(x1))