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.*;
import java.util.*;
import java.math.*;
import java.util.concurrent.*;

public final class manthan_c
{
    static BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
	static FastScanner sc=new FastScanner(br);
    static PrintWriter out=new PrintWriter(System.out);
	static Random rnd=new Random();
	static int[] x,y,cnt;
	static int[][] al;
	static long mod=(long)(1e9+7);
	static long[][][] dp;
	static int z,tot;
	static long val,m;
	
	static void dfs(int u,int p)
	{
		for(int x:al[u])
		{
			if(x!=p)
			{
				dfs(x,u);
			}
		}
		
		long[] p_sp=new long[11];p_sp[1]=1;
		
		for(int x:al[u])
		{
			if(x!=p)
			{
				long[] p_sp1=new long[11];
				
				for(int j=0;j<=tot;j++)
				{
					for(int k=0;k<=tot-j;k++)
					{
						long now=(dp[0][j][x]*p_sp[k]);
						
						p_sp1[j+k]=(p_sp1[j+k]+now)%mod;
					}
				}
				
				p_sp=p_sp1;
			}
		}
		
		for(int i=0;i<=10;i++)
		{
			dp[1][i][u]=p_sp[i];
		}
		
		long[][] p_nsp=new long[3][11];p_nsp[0][0]=(z-1);
		
		p_nsp[2][0]=(val);
		
		for(int x:al[u])
		{
			if(x!=p)
			{
				long[][] p_nsp1=new long[3][11];
				
				for(int j=0;j<=tot;j++)
				{
					for(int k=0;k<=tot-j;k++)
					{	
						long now1=(dp[0][j][x]+dp[1][j][x]+dp[2][j][x])%mod;
						
						long now2=(dp[0][j][x]+dp[2][j][x])%mod;
						
						now1=(now1*p_nsp[0][k])%mod;
						
						now2=(now2*p_nsp[2][k])%mod;
						
						p_nsp1[0][j+k]=(p_nsp1[0][j+k]+now1)%mod;
						
						p_nsp1[2][j+k]=(p_nsp1[2][j+k]+now2)%mod;
					}
				}
				
				p_nsp=p_nsp1;
			}
		}
		
		for(int i=0;i<=10;i++)
		{
			dp[0][i][u]=p_nsp[0][i];
			
			dp[2][i][u]=p_nsp[2][i];
		}
	}
	
    public static void main(String args[]) throws Exception
    {
		int n=sc.nextInt();m=sc.nextLong();
		
		x=new int[n];y=new int[n];cnt=new int[n];
		
		for(int i=1;i<n;i++)
		{
			x[i]=sc.nextInt()-1;y[i]=sc.nextInt()-1;
			
			cnt[x[i]]++;cnt[y[i]]++;
		}
		
		al=new int[n][];
		
		for(int i=0;i<n;i++)
		{
			al[i]=new int[cnt[i]];cnt[i]=0;
		}
		
		for(int i=1;i<n;i++)
		{
			int u=x[i],v=y[i];
			
			al[u][cnt[u]++]=v;al[v][cnt[v]++]=u;
		}
		
		z=sc.nextInt();tot=sc.nextInt();dp=new long[3][11][n];
		
		val=m-z;
		
		dfs(0,-1);long res=0;
		
		for(int i=0;i<=tot;i++)
		{
			for(int j=0;j<3;j++)
			{
				res=(res+dp[j][i][0])%mod;
			}
		}
		
		out.println(res);out.close();
		
    }
}
class FastScanner
{
    BufferedReader in;
    StringTokenizer st;

    public FastScanner(BufferedReader in) {
        this.in = in;
    }
	
    public String nextToken() throws Exception {
        while (st == null || !st.hasMoreTokens()) {
            st = new StringTokenizer(in.readLine());
        }
        return st.nextToken();
    }
	
	public String next() throws Exception {
		return nextToken().toString();
	}
	
    public int nextInt() throws Exception {
        return Integer.parseInt(nextToken());
    }

    public long nextLong() throws Exception {
        return Long.parseLong(nextToken());
    }

    public double nextDouble() throws Exception {
        return Double.parseDouble(nextToken());
    }
}