l, r = map(int, input().split()) d = int(input()) w = int(input()) print((r - l) / d * w)