D. Carl's Vacation
time limit per test
1 second
memory limit per test
1024 megabytes
input
standard input
output
standard output
Example
Input
0 0 10 0 4
9 18 34 26 42
Output
60.866649532