D. ExCyc
time limit per test
1 second
memory limit per test
1024 megabytes
input
standard input
output
standard output
Example
Input
4 2
1 2
2 3
Output
1.500000000