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;
template <typename T>
void chmax(T& a1, T a2) {
  a1 = std::max(a1, a2);
}
template <typename T>
void chmin(T& a1, T a2) {
  a1 = std::min(a1, a2);
}
template <typename T1, typename T2>
ostream& operator<<(ostream& os, const pair<T1, T2>& p) {
  return os << "(" << p.first << ", " << p.second << ")";
}
template <typename T>
ostream& operator<<(ostream& os, const vector<T>& v) {
  os << "[";
  for (int i = 0; i < v.size(); i++) os << (i == 0 ? "" : ", ") << v[i];
  os << "]";
  return os;
}
template <typename T1, typename T2>
ostream& operator<<(ostream& os, map<T1, T2>& mp) {
  os << "{";
  for (auto it = mp.begin(); it != mp.end(); it++) {
    os << "(" << it->first << ": " << it->second << ")";
    it++;
    if (it != mp.end()) os << ", ";
    it--;
  }
  os << "}";
  return os;
}
template <typename T>
ostream& operator<<(ostream& os, set<T>& st) {
  os << "{";
  for (auto it = st.begin(); it != st.end(); it++) {
    os << *it;
    ++it;
    if (it != st.end()) os << ", ";
    it--;
  }
  os << "}";
  return os;
}
using int64 = long long;
using Graph = std::vector<std::vector<int>>;
const int64 MOD = 1e9 + 7;
int N, M;
int K, X;
vector<int> T[100000];
int64 dp[100000][11][3];
int64 dfs(int v, int par) {
  dp[v][0][0] = 1;
  dp[v][1][1] = 1;
  dp[v][0][2] = 1;
  int64 mul[3] = {K - 1, 1, M - K};
  for (int to : T[v]) {
    if (to == par) continue;
    dfs(to, v);
    for (int x = X; x >= 0; x--) {
      for (int st = 0; st < 3; st++) {
        if (x == 0 and st == 1) continue;
        int64 nxt = 0;
        for (int subx = 0; subx <= x; subx++) {
          for (int subst = 0; subst < 3; subst++) {
            if (st == 1 and subst != 0) continue;
            if (st == 2 and subst == 1) continue;
            (nxt += dp[v][x - subx][st] * dp[to][subx][subst]) %= MOD;
          }
        }
        dp[v][x][st] = nxt;
      }
    }
  }
  int64 res = 0;
  for (int x = 0; x <= X; x++) {
    for (int st = 0; st < 3; st++) {
      (dp[v][x][st] *= mul[st]) %= MOD;
      (res += dp[v][x][st]) %= MOD;
    }
  }
  return res;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cin >> N >> M;
  for (long long i = 0; (i) < (long long)(N - 1); (i)++) {
    int a, b;
    cin >> a >> b;
    a--;
    b--;
    T[a].push_back(b);
    T[b].push_back(a);
  }
  cin >> K >> X;
  cout << dfs(0, -1) << endl;
  return 0;
}