#tea A,B,X,Y=(float(i) for i in input().split()) A1=A/B X1=Y*A1 if X1<=X: print(Y+X1) else: B1=B/A Y1=X*B1 print(X+Y1)