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.BigDecimal;
import java.math.BigInteger;
import java.math.MathContext;
 
public class Es
{
	static class Pair implements Comparable
	{
		int first;
		double second;
		
		public Pair(int f, double s)
		{
			first = f;
			second = s;
		}
		
		public String toString()
		{
			return first + " " + second;
		}
		
		public int compareTo(Object o)
		{
			Pair p2 = (Pair)o;
			if(this.first < p2.first)
				return -1;
			if(this.first > p2.first)
				return 1;
			if(this.second < p2.second)
				return -1;
			if(this.second > p2.second)
				return 1;
			return 0;
		}
	}
	
	static int log2(double a)
	{
		return (int)(Math.log(a) / Math.log(2));
	}
	
	static long gcd(long a, long b)
	{
		long r;
		while((r = a % b) > 0)
		{
			a = b;
			b = r;
		}
		return b;
	}
	
	static int n, m, k, x;
	static final long MOD = (long)1E9 + 7;
	static ArrayList <Integer>[] tree1;
	static int[][] tree;
	static long[][][] dp1;
	static long[][][][] dp2;
	static ArrayList <Integer>[] level;
	
	static long funDP1(int current, int numberOfSpecialNodes, int type)
	{
		//sop(current + " " + numberOfSpecialNodes + " " + type + "\n");
		if(type == 1 && numberOfSpecialNodes == 0)
			return dp1[current][numberOfSpecialNodes][type] = 0;
		if(tree[current].length == 0)
		{
			if(type == 0)
				return dp1[current][numberOfSpecialNodes][type] = numberOfSpecialNodes == 0 ? k - 1 : 0;
			if(type == 1)
				return dp1[current][numberOfSpecialNodes][type] = numberOfSpecialNodes == 1 ? 1 : 0;
			return dp1[current][numberOfSpecialNodes][type] = numberOfSpecialNodes == 0 ? m - k : 0;
		}
		dp1[current][numberOfSpecialNodes][type] = type == 0 ? k - 1 : (type == 1 ? 1 : m - k);
		long numberOfWays = 0;
		if(dp2[current][tree[current].length - 1][numberOfSpecialNodes - (type == 1 ? 1 : 0)][type] != -1)
			numberOfWays = dp2[current][tree[current].length - 1][numberOfSpecialNodes - (type == 1 ? 1 : 0)][type];
		else
			numberOfWays = funDP2(current, tree[current].length - 1, numberOfSpecialNodes - (type == 1 ? 1 : 0), type);
		return dp1[current][numberOfSpecialNodes][type] = dp1[current][numberOfSpecialNodes][type] * numberOfWays % MOD;
	}
	
	static long funDP2(int current, int lastNode, int numberOfSpecialNodes, int type)
	{
		//sop("-->  " + current + " " + lastNode + " " + numberOfSpecialNodes + " " + type + "\n");
		if(lastNode == 0)
		{
			long ans = 0;
			if(type == 0)
			{
				ans = (ans + dp1[tree[current][lastNode]][numberOfSpecialNodes][0] + dp1[tree[current][lastNode]][numberOfSpecialNodes][1] + dp1[tree[current][lastNode]][numberOfSpecialNodes][2]) % MOD;
			}else if(type == 1)
			{
				ans = (ans + dp1[tree[current][lastNode]][numberOfSpecialNodes][0]) % MOD;
			}else
			{
				ans = (ans + dp1[tree[current][lastNode]][numberOfSpecialNodes][0] + dp1[tree[current][lastNode]][numberOfSpecialNodes][2]) % MOD;
			}
			return dp2[current][lastNode][numberOfSpecialNodes][type] = ans;
		}
		long ans = 0;
		for(int y = 0; y <= numberOfSpecialNodes; y ++)
		{
			long q1 = dp2[current][lastNode - 1][numberOfSpecialNodes - y][type];
			if(q1 == -1)
				q1 = funDP2(current, lastNode - 1, numberOfSpecialNodes - y, type);
			long q2 = 0;
			if(type == 0)
			{
				q2 = (q2 + dp1[tree[current][lastNode]][y][0] + dp1[tree[current][lastNode]][y][1] + dp1[tree[current][lastNode]][y][2]) % MOD;
			}else if(type == 1)
			{
				q2 = (q2 + dp1[tree[current][lastNode]][y][0]) % MOD;
			}else
			{
				q2 = (q2 + dp1[tree[current][lastNode]][y][0] + dp1[tree[current][lastNode]][y][2]) % MOD;
			}
			ans = (ans + q1 * q2 % MOD) % MOD;
		}
		return dp2[current][lastNode][numberOfSpecialNodes][type] = ans;
	}
	
	static void dfs(int c, int p, int l)
	{
		level[l].add(c);
		tree[c] = new int[tree1[c].size() - (c == 1 ? 0 : 1)];
		int cnt = 0;
		for(int i = 0; i < tree1[c].size(); i ++)
		{
			if(tree1[c].get(i) == p)
				continue;
			//sop(cnt + " " + tree[c].length + "\n");
			tree[c][cnt ++] = tree1[c].get(i);
			dfs(tree1[c].get(i), c, l + 1);
		}
	}
	
	public static void main(String[] args) throws IOException
	{
		n = in.nextInt();
		m = in.nextInt();
		tree = new int[n + 1][];
		tree1 = new ArrayList[n + 1];
		level = new ArrayList[n + 1];
		for(int i = 0; i <= n; i ++)
		{
			level[i] = new ArrayList <Integer> ();
			tree1[i] = new ArrayList <Integer> ();
		}
		for(int i = 0; i < n - 1; i ++)
		{
			int u = in.nextInt();
			int v = in.nextInt();
			tree1[u].add(v);
			tree1[v].add(u);
		}
		dfs(1, -1, 0);
		k = in.nextInt();
		x = in.nextInt();
		dp1 = new long[n + 1][x + 1][3];
		for(int i = 0; i <= n; i ++)
		{
			for(int j = 0; j <= x; j ++)
			{
				Arrays.fill(dp1[i][j], -1);
			}
		}
		dp2 = new long[n + 1][][][];
		for(int i = 1; i <= n; i ++)
		{
			dp2[i] = new long[tree[i].length + 1][x + 1][3];
		}
		for(int i = 1; i <= n; i ++)
		{
			for(int j = 0; j < dp2[i].length; j ++)
			{
				for(int y = 0; y <= x; y ++)
				{
					Arrays.fill(dp2[i][j][y], -1);
				}
			}
		}
		for(int i = n; i >= 0; i --)
		{
			for(int j = 0; j < level[i].size(); j ++)
			{
				for(int z = 0; z <= x; z ++)
				{
					for(int y = 0; y <= 2; y ++)
					{
						funDP1(level[i].get(j), z, y);
					}
				}
			}
		}
		
		long ans = 0;
		for(int j = 0; j <= x; j ++)
		{
			for(int y = 0; y <= 2; y ++)
			{
				ans = (ans + dp1[1][j][y]) % MOD;
			}
		}
		sop(ans);
	}
    
	static class FastReader
    {
        BufferedReader br;
        StringTokenizer st;
 
        public FastReader()
        {
            br = new BufferedReader(new InputStreamReader(System.in));
        }
        
        String next()
        {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException  e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
 
        int nextInt()
        {
            return Integer.parseInt(next());
        }
 
        long nextLong()
        {
            return Long.parseLong(next());
        }
 
        double nextDouble()
        {
            return Double.parseDouble(next());
        }
 
        String nextLine()
        {
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        }
    }
	
    static FastReader in = new FastReader();
  
    public static void sop(Object o)
    {
    	System.out.print(o);
    }
}