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>
const long long MOD = 1e9 + 7;
const int MAX_N = 1e5 + 10;
const long long INF = 1e18;
const long long delta = 10957;
using namespace std;
int n, m, x, k;
vector<int> g[MAX_N];
long long dp[MAX_N][12][3];
void dfs(int v, int p) {
  if (g[v].size() == 1) {
    dp[v][0][0] = k - 1;
    dp[v][1][1] = 1;
    dp[v][0][2] = m - k;
    return;
  }
  vector<int> np;
  for (auto x : g[v])
    if (x != p) dfs(x, v), np.push_back(x);
  int t = np.size();
  long long d[t][x + 1];
  for (int i = 0; i < t; ++i)
    for (int j = 0; j <= x; ++j) d[i][j] = 0;
  d[0][0]++;
  int mfl = np[0];
  for (int i = 0; i <= x; ++i)
    d[0][i] = dp[mfl][i][0] + dp[mfl][i][1] + dp[mfl][i][2];
  for (int i = 1; i < t; ++i) {
    int u = np[i];
    for (int j = 0; j <= x; ++j) {
      for (int f = 0; f <= j; ++f) {
        d[i][j] += (d[i - 1][j - f] *
                    ((dp[u][f][1] + dp[u][f][0] + dp[u][f][2]) % MOD)) %
                   MOD;
        d[i][j] %= MOD;
      }
    }
  }
  for (int i = 0; i <= x; ++i) {
    dp[v][i][0] = (k - 1) * d[t - 1][i];
    dp[v][i][2] %= MOD;
    dp[v][i][0] %= MOD;
  }
  for (int i = 0; i < t; ++i)
    for (int j = 0; j <= x; ++j) d[i][j] = 0;
  d[0][0]++;
  mfl = np[0];
  for (int i = 0; i <= x; ++i) d[0][i] = dp[mfl][i][0];
  for (int i = 1; i < t; ++i) {
    int u = np[i];
    for (int j = 0; j <= x; ++j) {
      for (int f = 0; f <= j; ++f) {
        d[i][j] += (d[i - 1][j - f] * ((dp[u][f][0]) % MOD)) % MOD;
        d[i][j] %= MOD;
      }
    }
  }
  for (int i = 0; i <= x; ++i) {
    if (i) dp[v][i][1] += d[t - 1][i - 1];
  }
  for (int i = 0; i < t; ++i)
    for (int j = 0; j <= x; ++j) d[i][j] = 0;
  d[0][0]++;
  mfl = np[0];
  for (int i = 0; i <= x; ++i) d[0][i] = dp[mfl][i][0] + dp[mfl][i][2];
  for (int i = 1; i < t; ++i) {
    int u = np[i];
    for (int j = 0; j <= x; ++j) {
      for (int f = 0; f <= j; ++f) {
        d[i][j] +=
            (d[i - 1][j - f] * ((dp[u][f][0] + dp[u][f][2]) % MOD)) % MOD;
        d[i][j] %= MOD;
      }
    }
  }
  for (int i = 0; i <= x; ++i) {
    dp[v][i][2] = ((m - k) * d[t - 1][i]) % MOD;
  }
}
int main() {
  ios::sync_with_stdio(false);
  cout.tie();
  cin.tie();
  cin >> n >> m;
  int a, b;
  for (int i = 1; i < n; ++i)
    cin >> a >> b, g[a].push_back(b), g[b].push_back(a);
  cin >> k >> x;
  int v;
  for (int i = 1; i <= n; ++i)
    if (g[i].size() > 1) {
      v = i;
      break;
    }
  dfs(v, 0);
  long long ans = 0;
  for (int i = 0; i <= x; ++i) {
    ans += (((dp[v][i][0] + dp[v][i][1]) % MOD) + dp[v][i][2]) % MOD,
        ans %= MOD;
  }
  cout << ans;
  return 0;
}