Whisker Junction Festival
A festival is held on a tree with vertices. Vertex has a cat whose signal bell has volume .
Exactly distinct vertices are selected uniformly at random from all possible sets, and a fish is placed at every selected vertex.
Consider the cat at a vertex . Temporarily remove and all edges incident to it. This separates the remaining vertices into one or more connected components. The cat at rings its bell if at least two different components each contain at least one selected vertex.
If itself is selected, its fish belongs to none of the components and does not by itself help the cat ring.
The total signal is the sum of over all cats whose bells ring. Find the expected total signal modulo .
Input
The first line contains two integers and (), the number of vertices and the number of selected vertices.
Output
Let the expected total signal be the rational number in lowest terms. Print
Samples
Sample 1
Input
3 2 4 1 5 1 2 2 3
Output
333333336
Only the cat at vertex can ring. It rings when vertices and are selected, so the expected total signal is , represented modulo .