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;
long long mod = (long long)1000000007;
int M, K;
int par[100000 + 5];
vector<int> adj[100000 + 5];
long long dp[100000 + 5][11][3];
struct bin_tree_type {
  int le;
  int ri;
};
bin_tree_type tree[100000 + 5];
long long exp(long long ret, int pow) {
  if (pow == 0) {
    return 1;
  }
  long long sav = 1;
  while (pow ^ 1) {
    if (pow & 1) {
      sav *= ret;
      sav %= mod;
    }
    pow >>= 1;
    ret *= ret;
    ret %= mod;
  }
  ret *= sav;
  ret %= mod;
  return ret;
}
long long inv(long long inp) { return exp(inp, mod - 2); }
void dfs_lcrs(int nod, int pt) {
  int lastchild = -1;
  par[nod] = pt;
  for (int ke : adj[nod]) {
    if (ke == pt) {
      continue;
    }
    if (lastchild == -1) {
      tree[nod].le = ke;
    } else {
      tree[lastchild].ri = ke;
    }
    dfs_lcrs(ke, nod);
    lastchild = ke;
  }
}
long long DP(int nod, int rem, int status) {
  if (nod == 0) {
    if (rem == 0) {
      return 1;
    } else {
      return 0;
    }
  }
  long long &ret = dp[nod][rem][status];
  if (ret >= 0) {
    return ret;
  }
  ret = 0;
  if (rem && status != 2) {
    if (status == 1) {
      long long sumc = 0;
      for (int i = 0; i <= rem - 1; i++) {
        sumc += DP(tree[nod].le, i, 2) * DP(tree[nod].ri, rem - 1 - i, 1);
        sumc %= mod;
      }
      ret += sumc;
    } else {
      long long mult;
      if (nod != 1) {
        mult = ((long long)(K - 1) * inv(M - 1)) % mod;
      } else {
        mult = 1;
      }
      long long sumc = 0;
      for (int i = 0; i <= rem - 1; i++) {
        sumc += DP(tree[nod].le, i, 2) * DP(tree[nod].ri, rem - 1 - i, 1);
        sumc %= mod;
      }
      sumc *= mult;
      sumc %= mod;
      ret += sumc;
    }
  }
  if (status == 0) {
    long long mult = M - 1;
    long long sumc = 0;
    for (int i = 0; i <= rem; i++) {
      sumc += DP(tree[nod].le, i, 0) * DP(tree[nod].ri, rem - i, 0);
      sumc %= mod;
    }
    sumc *= mult;
    sumc %= mod;
    ret += sumc;
  } else if (status == 1) {
    long long mult = M - 1;
    long long sumc = 0;
    for (int i = 0; i <= rem; i++) {
      sumc += DP(tree[nod].le, i, 0) * DP(tree[nod].ri, rem - i, 1);
      sumc %= mod;
    }
    sumc *= mult;
    sumc %= mod;
    ret += sumc;
  } else if (status == 2) {
    long long mult = K - 1;
    long long sumc = 0;
    for (int i = 0; i <= rem; i++) {
      sumc += DP(tree[nod].le, i, 1) * DP(tree[nod].ri, rem - i, 2);
      sumc %= mod;
    }
    sumc *= mult;
    sumc %= mod;
    ret += sumc;
  }
  return ret;
}
int main() {
  memset(dp, -1, sizeof(dp));
  int N, a, b, X;
  long long has = 0;
  scanf("%d %d", &N, &M);
  int edge = N - 1;
  while (edge--) {
    scanf("%d %d", &a, &b);
    adj[a].push_back(b);
    adj[b].push_back(a);
  }
  scanf("%d %d", &K, &X);
  if (K == 1 && N > 1) {
    printf("%lld\n", exp(M - 1, N));
    return 0;
  }
  dfs_lcrs(1, 1);
  for (int i = X; i >= 0; i--) {
    has += DP(1, i, 0);
    has %= mod;
  }
  printf("%lld\n", has);
}