Choose an edgeYou need to find out the maximum number of vertices whose minimum distance to vertexand replace it by two edges,
and
, where
is a newly inserted vertex. Both of the two edges are of length
.
The first line contains three integers,
and
.
Each of the nextlines contains two integers
and
, indicating an edge between
and
. It is guaranteed that there are no self-loops or multiple edges.
Output an integer indicating the maximum number of vertices whose minimum distance to vertexis no more than
.
Here is the illustration for the second example.