A few days ago, WRD was playing a small game called Salty Fish Go. We can simplify the rules of the game as follows.
The road can be abstracted into a one-dimensional axis, and the length of the road is L. There are two magic doors at the ends of the road, which can instantly transfer WRD from position L to position 0, or from location 0 to location L, without spending time.
WRD can select the initial position, the initial direction of movement, and the initial speed (from the speed set).
There are some amazing gas stations on the way, whose location is random. At the gas station WRD can change speed to one of the speed set, without spending time. (Do not change direction!)
There are some jewels on the road, whose location is random. WRD needs to take away all the jewels to win the game.
How long does it take WRD to win the game?
It’s an easy game. But considering that WRD has become a salty fish without brain, all his operations are completely random. Can you calculate the expected time for him to win the game?
Input contains multiple test cases, please process to the end of input.
For each test case, the first line of the input contains four positive integers V (
), L (
), n (
), m (
) to indicate the size of speed set, the length of the road, the number of the gas stations, the number of the jewels.
Then, there are V integers in a line, the speed set, each integer is between 1 and
.
The output is a real number, let your answer be a, and jury's answer be b, your answer will be considered as correct if and only if.