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;
#pragma GCC optimize("-Ofast")
#pragma GCC optimize("trapv")
#pragma GCC target( \
    "sse,sse2,sse3,ssse3,sse4,sse4.2,popcnt,abm,mmx,avx2,tune=native")
#pragma GCC optimize("-ffast-math")
#pragma GCC optimize("-funroll-loops")
#pragma GCC optimize("-funroll-all-loops,-fpeel-loops,-funswitch-loops")
const int MAXN = 1e5 + 40;
const int MAXK = 12;
const long long int INF = 1000000000000000000;
vector<int> to[100001];
vector<int> toState[100001];
int stateLoc[300001];
int stateInd[300001];
int onw[300001];
long long mod = 1000000007LL;
bool v[100001];
int n, m, k, x;
int l, g;
int p = 0;
long long dp[3][300001][11];
int go(int now) {
  int firstState = p;
  stateLoc[p] = now;
  stateInd[p] = -1;
  onw[p] = -1;
  p++;
  v[now] = true;
  int prev = p - 1;
  for (int i = 0; i < to[now].size(); i++) {
    int next = to[now][i];
    if (v[next]) {
      toState[now].push_back(-1);
      continue;
    }
    stateLoc[p] = now;
    stateInd[p] = i;
    if (prev != -1) {
      onw[prev] = p;
    }
    prev = p;
    onw[p] = -1;
    p++;
    toState[now].push_back(go(next));
  }
  return firstState;
}
long long go(int above, int state, int rem) {
  if (dp[above][state][rem] != -1) {
    return dp[above][state][rem];
  }
  int loc = stateLoc[state];
  int ind = stateInd[state];
  if (ind == -1 && onw[state] == -1) {
    if (above == 2) {
      if (rem == 0) {
        dp[above][state][rem] = m - 1;
        return m - 1;
      }
      dp[above][state][rem] = 0;
      return 0;
    }
    if (above == 1) {
      if (rem == 0) {
        dp[above][state][rem] = l;
        return l;
      } else {
        dp[above][state][rem] = 0;
        return 0;
      }
    } else {
      if (rem == 1) {
        dp[above][state][rem] = 1;
        return 1;
      } else if (rem == 0) {
        dp[above][state][rem] = m - 1;
        return m - 1;
      } else {
        dp[above][state][rem] = 0;
        return 0;
      }
    }
  }
  long long ret = 0LL;
  if (ind == -1) {
    if (above == 0) {
      if (rem > 0) {
        ret += go(1, onw[state], rem - 1);
        ret %= mod;
      }
      ret += (long long)g * go(2, onw[state], rem);
      ret %= mod;
      ret += (long long)l * go(0, onw[state], rem);
      ret %= mod;
    } else if (above == 1) {
      ret += (long long)l * go(0, onw[state], rem);
      ret %= mod;
    } else if (above == 2) {
      ret += (long long)l * go(0, onw[state], rem);
      ret %= mod;
      ret += (long long)g * go(2, onw[state], rem);
      ret %= mod;
    }
    dp[above][state][rem] = ret;
    return ret;
  }
  if (onw[state] == -1) {
    ret = go(above, toState[loc][ind], rem);
    dp[above][state][rem] = ret;
    return ret;
  }
  for (int send = 0; send <= rem; send++) {
    ret +=
        go(above, toState[loc][ind], send) * go(above, onw[state], rem - send);
    ret %= mod;
  }
  dp[above][state][rem] = ret;
  return ret;
}
void solve() {
  for (int a = 0; a < 3; a++) {
    for (int b = 0; b <= 300000; b++) {
      for (int c = 0; c <= 10; c++) {
        dp[a][b][c] = -1;
      }
    }
  }
  cin >> n >> m;
  for (int i = 1; i < n; i++) {
    int a, b;
    cin >> a >> b;
    a--;
    b--;
    to[a].push_back(b);
    to[b].push_back(a);
  }
  go(0);
  cin >> k >> x;
  l = k - 1;
  g = m - k;
  long long ans = 0LL;
  for (int i = 0; i <= x; i++) {
    ans += go(0, 0, i);
    ans %= mod;
  }
  cout << ans << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int T = 1;
  while (T--) {
    solve();
  }
}