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 JAVA):

Solution:
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.StringTokenizer;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author OmarYasser
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskC solver = new TaskC();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskC {
        static int n;
        static int m;
        static int k;
        static int x;
        static ArrayList<Integer>[] adjList;
        static int LESS = 0;
        static int HIGH = 1;
        static int EQUAL = 2;
        static int mod = (int) 1e9 + 7;
        static int[] first;
        static int[] next;
        static int[] memo;

        static int dp(int parentType, int remX, int node) {
            if (node == -1) return remX == 0 ? 1 : 0;
            int saved = parentType + 3 * remX + 33 * node;
            if (memo[saved] != -1)
                return memo[saved];

            int res = 0;
            for (int giveFirstChild = 0; giveFirstChild <= remX; giveFirstChild++) {
                // make current node LESS
                res += (1L * (k - 1) * (1L * dp(LESS, giveFirstChild, first[node]) * dp(parentType, remX - giveFirstChild, next[node]) % mod) % mod);
                if (res >= mod) res -= mod;

                // make current node EQUAL
                if (remX > 0 && parentType == LESS && giveFirstChild != remX) {
                    res += (1L * dp(EQUAL, giveFirstChild, first[node]) * dp(parentType, remX - giveFirstChild - 1, next[node]) % mod);
                    if (res >= mod) res -= mod;
                }

                // make current node HIGH
                if (parentType != EQUAL) {
                    res += (1L * (m - k) * (1L * dp(HIGH, giveFirstChild, first[node]) * dp(parentType, remX - giveFirstChild, next[node]) % mod) % mod);
                    if (res >= mod) res -= mod;
                }
            }
            return memo[saved] = res;
        }

        public void solve(int testNumber, Scanner sc, PrintWriter out) {
            n = sc.nextInt();
            m = sc.nextInt();
            adjList = new ArrayList[n];
            for (int i = 0; i < n; i++)
                adjList[i] = new ArrayList<>();
            first = new int[n];
            next = new int[n];
            memo = new int[n * 33];
            Arrays.fill(memo, -1);
            for (int i = 0; i < n - 1; i++) {
                int u = sc.nextInt() - 1, v = sc.nextInt() - 1;
                adjList[u].add(v);
                adjList[v].add(u);
            }
            k = sc.nextInt();
            x = sc.nextInt();

            Arrays.fill(first, -1);
            Arrays.fill(next, -1);
            dfs(0, -1);
            int res = 0;
            for (int x1 = 0; x1 <= x; x1++) {
                res += dp(LESS, x1, 0);
                if (res >= mod) res -= mod;
            }
            out.println(res);
        }

        static void dfs(int node, int p) {
            int lst = -1;
            for (int nxt : adjList[node]) {
                if (nxt != p) {
                    dfs(nxt, node);
                    if (lst == -1) {
                        first[node] = nxt;
                    } else {
                        next[lst] = nxt;
                    }
                    lst = nxt;
                }
            }
        }

    }

    static class Scanner {
        StringTokenizer st;
        BufferedReader br;

        public Scanner(InputStream s) {
            br = new BufferedReader(new InputStreamReader(s));
        }

        public Scanner(FileReader f) {
            br = new BufferedReader(f);
        }

        public String next() {
            while (st == null || !st.hasMoreTokens())
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (Exception e) {
                }
            return st.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

    }
}