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.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.StringTokenizer;

public class ManthanC {

	public static void main(String[] args) {
		FastScanner scan = new FastScanner();
		PrintWriter out = new PrintWriter(System.out);
		int n = scan.nextInt(), m = scan.nextInt();
		long mod = (long)1e9+7;
		ArrayList<Integer>[] 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 u = scan.nextInt()-1, v = scan.nextInt()-1;
			adj[u].add(v);
			adj[v].add(u);
		}
		int k = scan.nextInt(), x = scan.nextInt();
		boolean[] v = new boolean[n];
		ArrayDeque<Integer> q = new ArrayDeque<>();
		int[] o = new int[n];
		ArrayList<Integer>[] c = new ArrayList[n];
		for(int i = 0; i < n; i++) c[i] = new ArrayList<Integer>();
		int idx = n-1;
		q.add(0);
		v[0] = true;
		while(!q.isEmpty()) {
			int at = q.poll();
			o[idx--] = at;
			for(int i : adj[at]) if(!v[i]) {
				q.add(i);
				v[i] = true;
				c[at].add(i);
			}
		}
		long[][][] dp = new long[3][n][x+1];
		for(int i = 0; i < n; i++) {
			// o[i] = node
			for(int j = 0; j < 3; j++) {
				int y = -1;
				if(j == 0) y = k-1;
				if(j == 1) y = 1;
				if(j == 2) y = m-k;
				dp[j][o[i]][j%2] = y;
				for(int next : c[o[i]]) {
					long[] a = new long[x+1];
					for(int jj = 0; jj < 3; jj++) {
						if(j == 1 && jj != 0) continue;
						if(j == 2 && jj == 1) continue;
						for(int p = x; p >= 0; p--) {
							for(int l = 0; l <= p; l++) {
								a[p] += dp[jj][next][l]*dp[j][o[i]][p-l];
								a[p] %= mod;
							}
						}
					}
					dp[j][o[i]] = a;
					
				}
			}
		}
		long res = 0;
		for(int j = 0; j < 3; j++) {
			for(int l = 0; l <= x; l++) {
				res += dp[j][o[n-1]][l];
				res %= mod;
			}
		}
		out.println(res);
		out.close();
	}

	static class FastScanner {
		BufferedReader br;
		StringTokenizer st;

		public FastScanner() {
			try	{
				br = new BufferedReader(new InputStreamReader(System.in));
				st = new StringTokenizer(br.readLine());
			} catch (Exception e){e.printStackTrace();}
		}

		public String next() {
			if (st.hasMoreTokens())	return st.nextToken();
			try {st = new StringTokenizer(br.readLine());}
			catch (Exception e) {e.printStackTrace();}
			return st.nextToken();
		}

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

		public long nextLong() {return Long.parseLong(next());}

		public double nextDouble() {return Double.parseDouble(next());}

		public String nextLine() {
			String line = "";
			if(st.hasMoreTokens()) line = st.nextToken();
			else try {return br.readLine();}catch(IOException e){e.printStackTrace();}
			while(st.hasMoreTokens()) line += " "+st.nextToken();
			return line;
		}

		public int[] nextIntArray(int n) {
			int[] a = new int[n];
			for(int i = 0; i < n; i++) a[i] = nextInt();
			return a;
		}

		public long[] nextLongArray(int n){
			long[] a = new long[n];
			for(int i = 0; i < n; i++) a[i] = nextLong();
			return a;
		}

		public double[] nextDoubleArray(int n){
			double[] a = new double[n];
			for(int i = 0; i < n; i++) a[i] = nextDouble();
			return a;
		}

		public char[][] nextGrid(int n, int m){
			char[][] grid = new char[n][m];
			for(int i = 0; i < n; i++) grid[i] = next().toCharArray();
			return grid;
		}
	}

}