#abc242a. [abc242_a]T-shirt

[abc242_a]T-shirt

Problem Statement

In a certain programming contest, T-shirts are awarded to participants according to the following rules.

  • All participants who ranked AA-th or higher get a T-shirt.
  • Additionally, from the participants who ranked between (A+1)(A+1)-th and BB-th (inclusive), CC participants chosen uniformly at random get a T-shirt.

There were 10001000 participants in this contest, and all of them got different ranks.
Iroha-chan, who participated in this contest, ranked XX-th.
Find the probability that she gets a T-shirt.

Constraints

  • All values in input are integers.
  • 1leA<Ble10001 \\le A < B \\le 1000
  • 1leCleBA1 \\le C \\le B-A
  • 1leXle10001 \\le X \\le 1000

Input

Input is given from Standard Input in the following format:

AA BB CC XX

Output

Print the answer. Your output will be considered correct if the absolute or relative error from the judge's answer is at most 10610^{−6}.


Sample Input 1

30 500 20 103

Sample Output 1

0.042553191489

Iroha-chan ranked 103103-rd.
She will get a T-shirt if she is among the 2020 participants chosen uniformly at random from the 470470 participants who ranked between 3131-st and 500500-th, which happens with probability frac20470=0.04255319dots\\frac{20}{470}=0.04255319\\dots.


Sample Input 2

50 500 100 1

Sample Output 2

1.000000000000

Iroha-chan ranked 11-st. This time, she is guaranteed to get a T-shirt.


Sample Input 3

1 2 1 1000

Sample Output 3

0.000000000000

Iroha-chan ranked 10001000-th. This time, she will never get a T-shirt.