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>
using namespace std;
const int MAXN = 100003;
struct edge {
  int to, next;
} e[MAXN << 1];
const long long MOD = 1000000007;
int first[MAXN], te, x, k, m;
long long dp[MAXN][13][5], tp[13][5], ans, ttp[13][5];
inline void adde(int a, int b) {
  e[++te].to = b;
  e[te].next = first[a];
  first[a] = te;
}
void dfs(int now, int fa) {
  bool abl = false;
  for (int i = first[now]; i != 0; i = e[i].next)
    if (e[i].to != fa) {
      dfs(e[i].to, now);
      abl = true;
    }
  if (!abl) {
    dp[now][0][0] = k - 1, dp[now][1][1] = 1, dp[now][0][2] = m - k;
    for (int j = 0; j <= x; j++)
      for (int k = 0; k < 3; k++)
        if (dp[now][j][k] == -1) dp[now][j][k] = 0;
    return;
  }
  bool fir = false;
  for (int i = first[now]; i != 0; i = e[i].next)
    if (e[i].to != fa) {
      if (!fir) {
        for (int j = 0; j <= x; j++) {
          tp[j][0] =
              (dp[e[i].to][j][0] + dp[e[i].to][j][1] + dp[e[i].to][j][2]) % MOD;
          tp[j][1] = dp[e[i].to][j][0];
          tp[j][2] = (dp[e[i].to][j][0] + dp[e[i].to][j][2]) % MOD;
        }
        fir = true;
        continue;
      }
      for (int j = 0; j <= x; j++)
        for (int k = 0; k < 3; k++) ttp[j][k] = tp[j][k];
      for (int j = 0; j <= x; j++) {
        tp[j][0] *=
            (dp[e[i].to][0][0] + dp[e[i].to][0][1] + dp[e[i].to][0][2]) % MOD;
        tp[j][0] %= MOD;
        if (j > 0) {
          tp[j - 1][1] *= dp[e[i].to][0][0] % MOD;
          tp[j - 1][1] %= MOD;
        }
        tp[j][2] *= (dp[e[i].to][0][0] + dp[e[i].to][0][2]) % MOD;
        tp[j][2] %= MOD;
      }
      for (int j = 1; j <= x; j++)
        for (int k = 0; k <= x - j; k++) {
          tp[j + k][0] +=
              (ttp[k][0] *
               ((dp[e[i].to][j][0] + dp[e[i].to][j][1] + dp[e[i].to][j][2]) %
                MOD)) %
              MOD;
          tp[j + k][0] %= MOD;
          if (k > 0) {
            tp[j + k - 1][1] += ttp[k - 1][1] * dp[e[i].to][j][0] % MOD;
            tp[j + k - 1][1] %= MOD;
          }
          tp[j + k][2] +=
              (ttp[k][2] * ((dp[e[i].to][j][0] + dp[e[i].to][j][2]) % MOD)) %
              MOD;
          tp[j + k][2] %= MOD;
        }
    }
  for (int i = 0; i <= x; i++) {
    dp[now][i][0] = tp[i][0] * (k - 1) % MOD;
    if (i > 0) dp[now][i][1] = tp[i - 1][1] % MOD;
    dp[now][i][2] = tp[i][2] * (m - k) % MOD;
  }
  for (int j = 0; j <= x; j++)
    for (int k = 0; k < 3; k++)
      if (dp[now][j][k] == -1) dp[now][j][k] = 0;
}
int main() {
  ios::sync_with_stdio(false);
  int n, a, b;
  cin >> n >> m;
  for (int i = 1; i < n; i++) {
    cin >> a >> b;
    adde(a, b);
    adde(b, a);
  }
  cin >> k >> x;
  memset(dp, -1, sizeof(dp));
  dfs(1, 0);
  for (int i = 0; i <= x; i++)
    for (int j = 0; j < 3; j++) {
      ans += dp[1][i][j];
      ans %= MOD;
    }
  cout << ans << "\n";
  return 0;
}