a,b,c,d = map(int, input().split()) import math D = (a-c)**2 - 8*(b-d) def c1(x): return x**2 + a*x + b def c2(x): return x**2 + c*x + d if D < 0: print('No') elif D == 0: print('Yes') else: x1 = (-(a-c) - math.sqrt(D))/4 x2 = (-(a-c) + math.sqrt(D))/4 dash = (c1(x2)-c1(x1))/(math.sqrt(D)/2) sep = -dash * x1 + c1(x1) # print(D,x1,x2,dash,sep) print(dash, sep)