Arson
There is a common web in front of you. However, as an experienced contester, you noticed that it is a connected graph with vertices and edges. If you fire some vertex, it will light up, after a second all adjacent vertices light up, then all adjacent ones with already burning will light up, etc.
You know which vertices will be fired in the web (all at the same time). Find how many seconds will pass until the last vertex lights up and find this vertex.
Input
The first line contains integers and . Each of the next lines contains two numbers — the vertex numbers connected with an edge. The vertices are numbered starting from .
The next line contains number — the number of points to fire. Next line contains the numbers of vertices to be fired.
Output
In the first line print the time when the last vertex will light up. In the second line print the number of this vertex. If there are several of them, print the one with minimum number.