A,B,X,Y=map(int,input().split()) S=A/B print((X+X/S,Y+Y*S)[X>=Y*S])