시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 0 0 0 0.000%

## 문제

Hard times have come for the citizens of Bytevillage. Dragon Milkdrinker has visited the neighbourhood of their village. It declared that each first day of the month it would come to the village and demand a tribute of h milliliters of milk. If it does not receive it, it will burn the village to ashes.

Prince Byteman is very worried about the dragon's threat. He is wondering what is the probability that the invader's demand could not be fulfilled. He knows that there are n cows in the village. He also knows that monthly milking of every cow (in milliliters) is a real number, chosen uniformly from the interval [m,M] and independently from the numbers for the remaining cows.

Help prince Byteman and compute the probability of occurence of such unfortunate situation, in which the village will be burned due to the lack of possibility of fullfillment of the dragon's demand.

## 입력

The first line of the standard input contains five integers n, m, M, h and d (1 ≤ n ≤ 3 000, 0 ≤ mM ≤ 109, 0 ≤ h ≤ 109, 1 ≤ d ≤ 10 000). These numbers denote: the number of cows in the village, the minimal monthly milking, the maximal monthly milking, the amount of the tribute and the expected precision of the output.

## 출력

The only line of the standard output should contain a number p written as a decimal fraction, representing an approximation of the probability of not fullfilling the dragon's demand. The fraction should be rounded down and have exactly d digits after the dot.

## 예제 입력 1

2 4 6 11 5


## 예제 출력 1

0.87500