AT_abc456_b [ABC456B] 456
Description
There are three dice, each with six faces.
The $ j $ -th face of the $ i $ -th die has $ A_{i,j} $ written on it.
For each die, each face comes up with probability $ \frac{1}{6} $ .
When these dice are rolled simultaneously, find the probability that the values $ 4,5,6 $ each appear exactly once.
Input Format
The input is given from Standard Input in the following format:
> $ A_{1,1} $ $ A_{1,2} $ $ A_{1,3} $ $ A_{1,4} $ $ A_{1,5} $ $ A_{1,6} $ $ A_{2,1} $ $ A_{2,2} $ $ A_{2,3} $ $ A_{2,4} $ $ A_{2,5} $ $ A_{2,6} $ $ A_{3,1} $ $ A_{3,2} $ $ A_{3,3} $ $ A_{3,4} $ $ A_{3,5} $ $ A_{3,6} $
Output Format
Output the answer. The answer is considered correct if the absolute or relative error from the true answer is at most $ 10^{-6} $ .
Explanation/Hint
### Sample Explanation 1
The desired probability is $ \frac{1}{36} $ . An output such as `0.027778` is also accepted.
### Sample Explanation 2
The desired probability is $ \frac{2}{9} $ .
### Constraints
- $ A_{i,j} $ is an integer between $ 1 $ and $ 6 $ , inclusive.