Problem: Harry, Ron and Hermione have figured out that Helga Hufflepuff's cup is a horcrux. Through her encounter with Bellatrix Lestrange, Hermione came to know that the cup is present in Bellatrix's family vault in Gringott's Wizarding Bank. 

The Wizarding bank is in the form of a tree with total n vaults where each vault has some type, denoted by a number between 1 to m. A tree is an undirected connected graph with no cycles.

The vaults with the highest security are of type k, and all vaults of type k have the highest security.

There can be at most x vaults of highest security. 

Also, if a vault is of the highest security, its adjacent vaults are guaranteed to not be of the highest security and their type is guaranteed to be less than k.

Harry wants to consider every possibility so that he can easily find the best path to reach Bellatrix's vault. So, you have to tell him, given the tree structure of Gringotts, the number of possible ways of giving each vault a type such that the above conditions hold.

Input

The first line of input contains two space separated integers, n and m — the number of vaults and the number of different vault types possible. (1 ≤ n ≤ 105, 1 ≤ m ≤ 109).

Each of the next n - 1 lines contain two space separated integers ui and vi (1 ≤ ui, vi ≤ n) representing the i-th edge, which shows there is a path between the two vaults ui and vi. It is guaranteed that the given graph is a tree.

The last line of input contains two integers k and x (1 ≤ k ≤ m, 1 ≤ x ≤ 10), the type of the highest security vault and the maximum possible number of vaults of highest security.

Output

Output a single integer, the number of ways of giving each vault a type following the conditions modulo 109 + 7.

Examples

Input

4 2
1 2
2 3
1 4
1 2


Output

1


Input

3 3
1 2
1 3
2 1


Output

13


Input

3 1
1 2
1 3
1 1


Output

0

Note

In test case 1, we cannot have any vault of the highest security as its type is 1 implying that its adjacent vaults would have to have a vault type less than 1, which is not allowed. Thus, there is only one possible combination, in which all the vaults have type 2.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
#pragma GCC optimize("O3")
#pragma GCC target("sse4")
using namespace std;
const int MOD = 1000000007;
vector<int> adj[111111];
long long DP[111111][4][11];
int M, K, X;
long long _DP2[111111][2][4][11];
void go(int v, int p = -1) {
  auto DP2 = _DP2[v];
  int w = 0;
  for (int j = 0; j < (4); ++j)
    for (int k = 0; k < (X + 1); ++k) DP2[w][j][k] = 0;
  DP2[w][0][0] = 1;
  for (int u : adj[v])
    if (u != p) {
      go(u, v);
      w = 1 - w;
      for (int j = 0; j < (4); ++j)
        for (int k = 0; k < (X + 1); ++k) DP2[w][j][k] = 0;
      for (int j = 0; j < (4); ++j)
        for (int k = 0; k < (X + 1); ++k)
          for (int ju = 0; ju < (4); ++ju)
            for (int ku = 0; ku < (X - k + 1); ++ku) {
              DP2[w][j | ju][k + ku] += DP2[1 - w][j][k] * DP[u][ju][ku] % MOD;
            }
      for (int j = 0; j < (4); ++j)
        for (int k = 0; k < (X + 1); ++k) DP2[w][j][k] %= MOD;
    }
  for (int j = 0; j < (4); ++j)
    for (int k = 0; k < (X + 1); ++k)
      DP[v][0][k] += (K - 1) * DP2[w][j][k] % MOD;
  for (int k = 0; k < (X); ++k) DP[v][2][k + 1] += DP2[w][0][k];
  for (int j = 0; j < (2); ++j)
    for (int k = 0; k < (X + 1); ++k)
      DP[v][1][k] += (M - K) * DP2[w][j][k] % MOD;
  for (int j = 0; j < (4); ++j)
    for (int k = 0; k < (X + 1); ++k) DP[v][j][k] %= MOD;
}
int main() {
  int N;
  scanf("%d%d", &N, &M);
  for (int i = 0; i < (N - 1); ++i) {
    int a, b;
    scanf("%d%d", &a, &b);
    --a, --b;
    adj[a].push_back(b);
    adj[b].push_back(a);
  }
  scanf("%d%d", &K, &X);
  go(0);
  long long result = 0;
  for (int j = 0; j < (4); ++j)
    for (int i = 0; i < (X + 1); ++i) result += DP[0][j][i];
  result %= MOD;
  printf("%d\n", (int)result);
}