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.util.*;
import java.io.*;
import java.math.*;
 
public class G {
    public static void main(String[] args) throws IOException {
        //PrintWriter out = new PrintWriter(new File("out.txt"));
        PrintWriter out = new PrintWriter(System.out);
        //Reader in = new Reader(new FileInputStream("in.txt"));
        Reader in = new Reader();
        G solver = new G();
        solver.solve(out, in);
        out.flush();
        out.close();
 
    }
 
 
 
    static int maxn = (int)1e4+5;
    static long mod=(int)1e9+7;
    static int n,m;
 
    static ArrayList<Integer> adj[];
    static long[][][] dp;
    static int x, k;

    void solve(PrintWriter out, Reader in) throws IOException{   
        n = in.nextInt();
        m = in.nextInt();

        adj = new ArrayList[n+1];
        for (int i = 1; i <= n; i++) {
            adj[i] = new ArrayList<Integer>();
        }

        int u,v;
        for (int i = 0; i < n-1; i++) {
            u = in.nextInt();
            v = in.nextInt();
            adj[u].add(v);
            adj[v].add(u);
        }

        k = in.nextInt(); x = in.nextInt();
        dp = new long[n+1][x+1][3];
        long ans = 0;

        if (k == 1) {
            m--;
            ans = m;
            for (int i = 1; i < n; i++) ans = (ans*m)%mod;
            out.println(ans);
            return;
        }

        DFS(1, 0);
        for (int i = 0; i <= x; i++) {
            ans = (ans+dp[1][i][0]+dp[1][i][1]+dp[1][i][2])%mod;
        }
        
        out.println(ans);
    }
 
    //<>
    
    // dp[i][j][k] -- equal to the number of ways we can make a tree containing j max vaults
    //                while element i is a max vault if k is equal to 1 otherwise not.

    static void DFS(int s, int p) {
        dp[s][1][1] = 1;
        dp[s][0][0] = k-1;
        dp[s][0][2] = m-k;

        for (int e: adj[s]) {
            if (e != p) {
                DFS(e, s);
                for (int i = x; i >= 0; i--) {
                    dp[s][i][0] = (dp[s][i][0]*(dp[e][0][0]+dp[e][0][2]))%mod;
                    dp[s][i][1] = (dp[s][i][1]*dp[e][0][0])%mod;
                    dp[s][i][2] = (dp[s][i][2]*(dp[e][0][0]+dp[e][0][2]))%mod;
                    for (int j = i; j > 0; j--) {
                        dp[s][i][0] = (dp[s][i][0]+(dp[s][i-j][0]*(dp[e][j][1]+dp[e][j][2]))%mod)%mod;
                        dp[s][i][0] = (dp[s][i][0]+(dp[s][i-j][0]*dp[e][j][0])%mod)%mod;
                        dp[s][i][1] = (dp[s][i][1]+(dp[s][i-j][1]*dp[e][j][0])%mod)%mod;
                        dp[s][i][2] = (dp[s][i][2]+(dp[s][i-j][2]*(dp[e][j][0]+dp[e][j][2]))%mod)%mod;
                    }
                }
            }

        }
    }

    static class Reader {
 
        private InputStream mIs;
        private byte[] buf = new byte[1024];
        private int curChar;
        private int numChars;
    
        public Reader() {
            this(System.in);
        }
    
        public Reader(InputStream is) {
            mIs = is;
        }
    
        public int read() {
            if (numChars == -1) {
                throw new InputMismatchException();
    
        }
            if (curChar >= numChars) {
                curChar = 0;
                try {
                    numChars = mIs.read(buf);
                } catch (IOException e) {
                    throw new InputMismatchException();
                }
                if (numChars <= 0) {
                    return -1;
                }
            }
            return buf[curChar++];
        }
    
        public String nextLine() {
            int c = read();
            while (isSpaceChar(c)) {
                c = read();
            }
            StringBuilder res = new StringBuilder();
            do {
                res.appendCodePoint(c);
                c = read();
            } while (!isEndOfLine(c));
            return res.toString();
        }
    
        public String next() {
            int c = read();
            while (isSpaceChar(c)) {
                c = read();
            }
            StringBuilder res = new StringBuilder();
            do {
                res.appendCodePoint(c);
                c = read();
            } while (!isSpaceChar(c));
            return res.toString();
        }
    
        double nextDouble()
        {
            return Double.parseDouble(next());
        }
    
        public long nextLong() {
            int c = read();
            while (isSpaceChar(c)) {
                c = read();
            }
            int sgn = 1;
            if (c == '-') {
                sgn = -1;
                c = read();
            }
            long 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 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) {
            return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
        }
    
        public boolean isEndOfLine(int c) {
            return c == '\n' || c == '\r' || c == -1;
        }
 
    }
}