After discovering the
With this discovery, Kevin can solve even more combinatorics problems.
One of the combinatorics problems entails a list of
Since these are normalized probabilities, there are
A
corresponds to a 100% probability of occurring.B
corresponds to an 80% probability of occurring.C
corresponds to a 60% probability of occurring.D
corresponds to a 40% probability of occurring.E
corresponds to a 20% probability of occurring.
Kevin wants to know how likely it is that all these
Constraints
A
B
C
D
E
Input Specification
The first line will contain
The next A
, B
, C
, D
, or E
).
Output Specification
Output the probability of all
Sample Input 1
3
A
B
B
Sample Output 1
0.640000
Sample Input 2
4
B
C
D
E
Sample Output 2
0.038400
Comments