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.OutputStream;
import java.io.PrintWriter;
import java.io.BufferedWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashSet;
import java.util.StringTokenizer;
import java.io.Writer;
import java.io.OutputStreamWriter;
import java.io.BufferedReader;
import java.io.InputStream;

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

    static class TaskC {
        final long MOD = 1_000_000_007;

        public void solve(int testNumber, FastScanner in, FastPrinter out) {
            int n = in.nextInt();
            int m = in.nextInt();
            HashSet<Integer>[] adj = new HashSet[n];
            for (int i = 0; i < n; i++) {
                adj[i] = new HashSet<>();
            }
            for (int i = 0; i < n - 1; i++) {
                int u = in.nextInt() - 1;
                int v = in.nextInt() - 1;
                adj[u].add(v);
                adj[v].add(u);
            }
            int k = in.nextInt() - 1;
            int x = in.nextInt();
            int r = m - k - 1;

            long[][][] ans = new long[3][x + 1][n];
            boolean[] vis = new boolean[n];
            dfs(0, adj, r, k, x, vis, ans);
            long ans2 = 0;
            for (int i = 0; i < 3; i++) {
                for (int j = 0; j < x + 1; j++) {
                    ans2 += ans[i][j][0];
                }
            }
            out.printLine(ans2 % MOD);
        }

        void dfs(int cur, HashSet<Integer>[] adj, int r, int k, int x, boolean[] vis, long[][][] ans) {
            vis[cur] = true;
            long[][] tmp = new long[3][x + 1];
            long[][] newTmp = new long[3][x + 1];
            tmp[0][0] = k;
            tmp[1][0] = 1;
            tmp[2][0] = r;
            for (int i = 1; i < x + 1; i++) {
                tmp[0][i] = tmp[1][i] = tmp[2][i] = 0;
            }
            for (int i : adj[cur]) {
                if (vis[i]) continue;
                dfs(i, adj, r, k, x, vis, ans);
                for (int j = 0; j < x + 1; j++) {
                    newTmp[0][j] = 0;
                    newTmp[1][j] = 0;
                    newTmp[2][j] = 0;
                    for (int l = 0; l < j + 1; l++) {
                        int d = j - l;
                        newTmp[0][j] += tmp[0][l] * (ans[0][d][i] + ans[1][d][i] + ans[2][d][i]);
                        newTmp[1][j] += tmp[1][l] * (ans[0][d][i]);
                        newTmp[2][j] += tmp[2][l] * (ans[0][d][i] + ans[2][d][i]);
                        newTmp[0][j] %= MOD;
                        newTmp[1][j] %= MOD;
                        newTmp[2][j] %= MOD;
                    }
                }
                long[][] tmp2 = newTmp;
                newTmp = tmp;
                tmp = tmp2;
            }
            for (int l = 0; l < x + 1; l++) {
                ans[0][l][cur] = tmp[0][l];
                ans[2][l][cur] = tmp[2][l];
            }
            ans[1][0][cur] = 0;
            for (int l = 0; l < x; l++) {
                ans[1][l + 1][cur] = tmp[1][l];
            }
        }

    }

    static class FastScanner {
        private BufferedReader reader;
        private StringTokenizer st;

        public FastScanner(InputStream stream) {
            this.reader = new BufferedReader(new InputStreamReader(stream));
            this.st = new StringTokenizer("");
        }

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

        public String next() {
            while (!st.hasMoreTokens()) {
                st = new StringTokenizer(readLine());
            }
            return st.nextToken();
        }

        private String readLine() {
            String line = tryReadLine();
            if (line == null) throw new InputMismatchException();
            return line;
        }

        private String tryReadLine() {
            try {
                return reader.readLine();
            } catch (IOException e) {
                throw new InputMismatchException();
            }
        }

    }

    static class FastPrinter {
        private final PrintWriter writer;

        public FastPrinter(OutputStream outputStream) {
            writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));
        }

        public FastPrinter(Writer writer) {
            this.writer = new PrintWriter(writer);
        }

        public void close() {
            writer.close();
        }

        public void printLine(long i) {
            writer.println(i);
        }

    }
}