a, b, x, y = map(int, input().split()) if b * x <= a * y: print(x + x * a / b) else: print(a / b * y + y)