<a href="https://codeforces.com/problemset/problem/578/C" target="_blank"><i class="fa fa-external-link" aria-hidden="true"> Link -> Weakness and Poorness</i></a>
Input Format
Check the Link
Output Format
Check the Link
Constraints
Check the Link
Example
Input
3 1 2 3
Output
1.000000