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

public final class Main {
	
	static ArrayList<Integer> graph[];// = new ArrayList[100005];
	static int n,m,k,x;
	static long dp[][][] = new long[100005][3][11];
	static int mod = (int)1e9+7;
	static long a[][] = new long[3][11];
	static long b[][] = new long[3][11];
	
	static void dfs(int v,int p) {
		
		int j=0;
		for(int ii : graph[v]) {
			
			if(ii != p) {
				dfs(ii,v);
				j = 1;
			}
		}
		if(j == 0) {
			dp[v][0][0] = k-1;
			dp[v][1][1] = 1;
			dp[v][2][0] = m-k;
			return;
		}
		int i,l,r;
		long tmp;
		for(i=0 ; i<3 ; i++) {
			for(j=0 ; j<=x ; j++) {
				a[i][j] = b[i][j] = 0;
			}
		}
		
		for(i=0 ; i<3 ; i++) {
			a[i][0] = 1;
		}
		
		for(int u : graph[v]) {
			
			if( u == p)
				continue;
			
			for(j=0 ; j<3 ; j++) {
				
				for(l=0 ; l<=x ; l++) {
					
					for(r=0 ; r<=x ; r++) {
						
						if(l+r > x)
							continue;
						
						if(j == 0) {
							
							tmp = (dp[u][0][r] + dp[u][2][r])%mod;
							tmp = (tmp + dp[u][1][r])%mod;
							b[0][l+r] = (long)(b[0][l+r] + (long)(tmp*a[0][l])%mod )%mod;
									
						}
						else if(j == 1) {
							b[1][l+r] = (long)(b[1][l+r] + (long)dp[u][0][r]*a[1][l]%mod)%mod;
							
						}else {
							tmp = (dp[u][0][r] + dp[u][2][r])%mod;
							b[2][l+r] = (long)(b[2][l+r] + (long)(tmp*a[2][l])%mod )%mod;	
						}
					}
				}	
			}
			
			for(i=0 ; i<3 ; i++) {
				for(j=0 ; j<=x ; j++) {
					a[i][j] = b[i][j];
					b[i][j] = 0;
				}
			}
		}
		
		for(i=0 ; i<=x ; i++) {
			
			dp[v][0][i] = (long)(a[0][i]*(k-1))%mod;
			if(i > 0) {
				dp[v][1][i] = a[1][i-1];
			}
			dp[v][2][i] = (long)(a[2][i]*(m-k))%mod;
		}
		
	}
	
	public static void main(String[]args) {
		
		InputReader ir = new InputReader(System.in);
		PrintWriter w = new PrintWriter(System.out);
		n = ir.nextInt();
		m = ir.nextInt();
		
		graph = new ArrayList[n+1];
		
		int i,j,u,v;
		for(i=1 ; i<=n ; i++) {
			graph[i] = new ArrayList<Integer>();
		}
		
		for(i=1 ; i<n ; i++) {
			u = ir.nextInt();
			v = ir.nextInt();
			graph[u].add(v);
			graph[v].add(u);
		}
		k = ir.nextInt();
		x = ir.nextInt();
		dfs(1,-1);
		long ans=0;
		for(i=0 ; i<3 ; i++) {
			for(j=0 ; j<=x ; j++) {
				ans = (ans + dp[1][i][j])%mod;
			}
		}
		//w.println(mod);
		w.println(ans);
		w.close();
	}
	
	
	static class InputReader {
		 
        private final InputStream stream;
        private final byte[] buf = new byte[8192];
        private int curChar, snumChars;
        private SpaceCharFilter filter;
 
        public InputReader(InputStream stream) {
            this.stream = stream;
        }
 
        public int snext() {
            if (snumChars == -1)
                throw new InputMismatchException();
            if (curChar >= snumChars) {
                curChar = 0;
                try {
                    snumChars = stream.read(buf);
                } catch (IOException e) {
                    throw new InputMismatchException();
                }
                if (snumChars <= 0)
                    return -1;
            }
            return buf[curChar++];
        }
 
        public int nextInt() {
            int c = snext();
            while (isSpaceChar(c)) {
                c = snext();
            }
            int sgn = 1;
            if (c == '-') {
                sgn = -1;
                c = snext();
            }
            int res = 0;
            do {
                if (c < '0' || c > '9')
                    throw new InputMismatchException();
                res *= 10;
                res += c - '0';
                c = snext();
            } while (!isSpaceChar(c));
            return res * sgn;
        }
 
        public long nextLong() {
            int c = snext();
            while (isSpaceChar(c)) {
                c = snext();
            }
            int sgn = 1;
            if (c == '-') {
                sgn = -1;
                c = snext();
            }
            long res = 0;
            do {
                if (c < '0' || c > '9')
                    throw new InputMismatchException();
                res *= 10;
                res += c - '0';
                c = snext();
            } while (!isSpaceChar(c));
            return res * sgn;
        }
 
        public int[] nextIntArray(int n) {
            int a[] = new int[n];
            for (int i = 0; i < n; i++) {
                a[i] = nextInt();
            }
            return a;
        }
 
        public String readString() {
            int c = snext();
            while (isSpaceChar(c)) {
                c = snext();
            }
            StringBuilder res = new StringBuilder();
            do {
                res.appendCodePoint(c);
                c = snext();
            } while (!isSpaceChar(c));
            return res.toString();
        }
 
        public String nextLine() {
            int c = snext();
            while (isSpaceChar(c))
                c = snext();
            StringBuilder res = new StringBuilder();
            do {
                res.appendCodePoint(c);
                c = snext();
            } while (!isEndOfLine(c));
            return res.toString();
        }
 
        public boolean isSpaceChar(int c) {
            if (filter != null)
                return filter.isSpaceChar(c);
            return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
        }
 
        private boolean isEndOfLine(int c) {
            return c == '\n' || c == '\r' || c == -1;
        }
 
        public interface SpaceCharFilter {
            public boolean isSpaceChar(int ch);
        }
    }
}