D. Drinking Culture
time limit per test
1 second
memory limit per test
960 megabytes
input
standard input
output
standard output
Example
Input
3
350 750 330
140 131 16
Output
0.19356182654786474591