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.io.Writer;
import java.io.OutputStreamWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.util.ArrayList;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author rishus23
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        OutputWriter out = new OutputWriter(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 final int mod = 1000000007;
        static ArrayList<Integer>[] adj;
        static long[][][] dp;
        static long[][] a;
        static long[][] b;
        static int[] sz;

        public void solve(int testNumber, InputReader in, OutputWriter out) {
            n = in.nextInt();
            m = in.nextInt();
            adj = new ArrayList[n];
            for (int i = 0; i < n; i++)
                adj[i] = new ArrayList<Integer>();
            for (int i = 0; i < n - 1; i++) {
                int aa = in.nextInt() - 1;
                int bb = in.nextInt() - 1;
                adj[aa].add(bb);
                adj[bb].add(aa);
            }
            k = in.nextInt();
            x = in.nextInt();
            a = new long[3][x + 1];
            b = new long[3][x + 1];
            sz = new int[n];
            dp = new long[n][3][x + 1];
            dfs(0, -1);
            long ans = 0;
            for (int i = 0; i < 3; i++)
                for (int j = 0; j <= x; j++)
                    ans = (ans % mod + dp[0][i][j] % mod) % mod;
            out.println(ans);
        }

        private void dfs(int v, int p) {
            sz[v] = 1;
            boolean flag = false;
            for (int i : adj[v]) {
                if (i == p)
                    continue;

                flag = true;
                dfs(i, v);
                sz[v] += sz[i];
            }
            if (!flag) {
                dp[v][0][0] = k - 1;
                dp[v][1][1] = 1;
                dp[v][2][0] = m - k;
                return;
            }
            for (int i = 0; i < 3; i++)
                for (int j = 0; j <= x; j++) {
                    a[i][j] = 0;
                    b[i][j] = 0;
                }
            for (int i = 0; i < 3; i++)
                a[i][0] = 1;
            for (int i : adj[v]) {
                if (i == p)
                    continue;
                for (int j = 0; j < 3; j++) {
                    for (int l = 0; l <= x && l <= sz[v]; l++)
                        for (int r = 0; r <= x && r <= sz[i]; r++) {
                            if (l + r > x)
                                continue;
                            if (j == 0) {
                                long temp = ((dp[i][0][r] % mod + dp[i][1][r] % mod) % mod + dp[i][2][r] % mod) % mod;
                                long ll = (1L * a[j][l] * temp) % mod;
                                b[j][l + r] = (b[j][l + r] % mod + (ll) % mod);
                            } else if (j == 1) {
                                long temp = dp[i][0][r] % mod;
                                long ll = (1L * a[j][l] * temp) % mod;
                                b[j][l + r] = (b[j][l + r] % mod + ll) % mod;
                            } else {
                                long temp = (dp[i][0][r] % mod + dp[i][2][r] % mod) % mod;
                                long ll = (1L * a[j][l] * temp) % mod;
                                b[j][l + r] = (b[j][l + r] % mod + ll) % mod;
                            }
                        }
                }

                for (int ij = 0; ij < 3; ij++)
                    for (int kk = 0; kk <= x; kk++) {
                        a[ij][kk] = b[ij][kk];
                        b[ij][kk] = 0;
                    }
            }

            for (int j = 0; j <= x; j++) {
                dp[v][0][j] = (a[0][j] * (k - 1)) % mod;
                if (j >= 1)
                    dp[v][1][j] = a[1][j - 1];
                dp[v][2][j] = (a[2][j] * (m - k)) % mod;
            }
        }

    }

    static class OutputWriter {
        private final PrintWriter writer;

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

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

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

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

    }

    static class InputReader {
        private InputStream stream;
        private byte[] buf = new byte[1024];
        private int curChar;
        private int numChars;
        private InputReader.SpaceCharFilter filter;

        public InputReader(InputStream stream) {
            this.stream = stream;
        }

        public int read() {
            if (numChars == -1) {
                throw new InputMismatchException();
            }
            if (curChar >= numChars) {
                curChar = 0;
                try {
                    numChars = stream.read(buf);
                } catch (IOException e) {
                    throw new InputMismatchException();
                }
                if (numChars <= 0) {
                    return -1;
                }
            }
            return buf[curChar++];
        }

        public int nextInt() {
            int c = read();
            while (isSpaceChar(c)) {
                c = read();
            }
            int sgn = 1;
            if (c == '-') {
                sgn = -1;
                c = read();
            }
            int res = 0;
            do {
                if (c < '0' || c > '9') {
                    throw new InputMismatchException();
                }
                res *= 10;
                res += c - '0';
                c = read();
            } while (!isSpaceChar(c));
            return res * sgn;
        }

        public boolean isSpaceChar(int c) {
            if (filter != null) {
                return filter.isSpaceChar(c);
            }
            return isWhitespace(c);
        }

        public static boolean isWhitespace(int c) {
            return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
        }

        public interface SpaceCharFilter {
            public boolean isSpaceChar(int ch);

        }

    }
}