Virus Tree 2#10655

Virus Tree 2

1 second
128 megabytes
Very easy

You are given a tree with vertices and n - 1 edges. The vertices are numbered from to , and the -th edge connects vertices a_i and b_i.

You have colors available. For each vertex in the tree, you choose one of the colors to paint it, subject to the following condition:

How many ways are there to color the tree? Find the answer modulo 10^9 + 7.

Input

The first line contains two numbers and k~(1 \le n, k \le 10^5). Each of the following n - 1 lines contains two integers a_i and b_i~(1 \le a_i, b_i \le n).

Output

Print the number of ways to color the tree modulo 10^9 + 7.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading