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.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 Vaibhav Pulastya
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        BHelgaHufflepuffsCup solver = new BHelgaHufflepuffsCup();
        solver.solve(1, in, out);
        out.close();
    }

    static class BHelgaHufflepuffsCup {
        ArrayList<Integer>[] tree;
        int m;
        int k;
        int x;
        long[][][] dp;
        long MOD = (int) 1e9 + 7;

        public void solve(int testNumber, InputReader in, PrintWriter out) {
            int n = in.nextInt();
            m = in.nextInt();
            tree = new ArrayList[n];
            for (int i = 0; i < n; i++) tree[i] = new ArrayList<>();
            for (int i = 0; i < n - 1; i++) {
                int u = in.nextInt() - 1;
                int v = in.nextInt() - 1;
                tree[u].add(v);
                tree[v].add(u);
            }
            k = in.nextInt();
            x = in.nextInt();
            dp = new long[n][x + 1][3];

            dfs(0, -1);
            long ans = 0;
            for (int i = 0; i <= x; i++) {
                for (int j = 0; j < 3; j++) {
                    ans += dp[0][i][j];
                    ans %= MOD;
                }
            }
            out.println(ans);
        }

        int dfs(int u, int p) {

            int sz = 1;


            long[][] dp1 = new long[x + 1][3];
            long[][] temp = new long[x + 1][3];
            temp[0][0] = k - 1;
            temp[1][1] = 1;
            temp[0][2] = m - k;
            for (int v : tree[u]) {

                if (v == p) continue;

                sz += dfs(v, u);

                for (int i = 0; i <= x; i++) {
                    for (int j = 0; j < 3; j++) {
                        // temp[i][j] = dp1[i][j];
                        dp1[i][j] = 0;
                    }
                }

                for (int tot = Math.min(x, sz); tot >= 0; tot--) {
                    for (int here = 0; here <= tot; here++) {
                        dp1[tot][0] += ((temp[tot - here][0]) * ((dp[v][here][0] + dp[v][here][1] + dp[v][here][2]) % MOD)) % MOD;
                        dp1[tot][1] += ((temp[tot - here][1]) * (dp[v][here][0])) % MOD;
                        dp1[tot][2] += ((temp[tot - here][2]) * ((dp[v][here][0] + dp[v][here][2]) % MOD)) % MOD;
                        dp1[tot][0] %= MOD;
                        dp1[tot][1] %= MOD;
                        dp1[tot][2] %= MOD;
                    }
                }
                for (int i = 0; i <= x; i++) {
                    for (int j = 0; j < 3; j++) {
                        temp[i][j] = dp1[i][j];
                    }
                }
            }

            for (int i = 0; i <= x; i++) {
                for (int j = 0; j < 3; j++) {
                    dp[u][i][j] = temp[i][j];
                }
            }
            return sz;
        }

    }

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

        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;
        }

        private boolean isSpaceChar(int c) {
            return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
        }

    }
}