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:
/**
 * DA-IICT
 * Author : Savaliya Sagar
 */
import java.io.*;
import java.math.*;
import java.util.*;

import static java.util.Arrays.fill;
import static java.lang.Math.*;
import static java.util.Arrays.sort;
import static java.util.Collections.sort;

public class C855
{
	InputStream is;
	PrintWriter out;
	String INPUT = "";
	ArrayList<Integer> a[];
	long dp[][][];
	int k,x,m;
	int mod = (int)(1e9+7);
	void solve()
	{
		int n = ni();
		m = ni();
		a = new ArrayList[n+1];
		for(int i=0;i<=n;i++){
			a[i] = new ArrayList<>();
		}
		for(int i=0;i<n-1;i++){
			int u = ni();
			int v = ni();
			a[u].add(v);
			a[v].add(u);
		}
		k = ni();
		x = ni();
		dp = new long[n+1][3][x+1];
		dfs(1,0);
		long ans = 0;
		for(int i=0;i<=x;i++){
			ans = add(ans,add(add(dp[1][0][i], dp[1][1][i]) , dp[1][2][i]));
		}
		out.print(ans);
	}
	void dfs(int u,int p){
		int c = 0;
		for(int v:a[u]){
			if(v==p)
				continue;
			c++;
			dfs(v,u);
		}
		if(c==0){
			dp[u][0][0] = k-1;
			dp[u][1][1] = 1;
			dp[u][2][0] = m-k;
			return;
		}
		long p1[] = new long[x+1];
		long p2[] = new long[x+1];
		long p3[] = new long[x];
		p1[0] = 1;
		p2[0] = 1;
		p3[0] = 1;
		for(int v:a[u]){
			if(v==p)
				continue;
			long d1[] = new long[x+1];
			long d2[] = new long[x+1];
			long d3[] = new long[x+1];
			for(int i=0;i<=x;i++){
				for(int j=0;i+j<=x;j++){
					d1[i+j] =add(d1[i+j],mul(p1[j],add(dp[v][0][i],add(dp[v][1][i],dp[v][2][i]))));
				}
			}
			for(int i=0;i<=x;i++){
				for(int j=0;i+j<=x;j++){
					d2[i+j] = add(d2[i+j],mul(p2[j],add(dp[v][0][i],dp[v][2][i])));
				}
			}
			for(int i=0;i<x;i++){
				for(int j=0;i+j<x;j++){
					d3[i+j] = add(d3[i+j],mul(p3[j],dp[v][0][i]));
				}
			}
			p1 = d1;
			p2 = d2;
			p3 = d3;
		}
		for(int i=0;i<x+1;i++){
			dp[u][0][i] = mul(p1[i],(k-1));
		}
		for(int i=0;i<x+1;i++){
			dp[u][2][i] = mul(p2[i],(m-k));
		}
		for(int i=0;i<x;i++){
			dp[u][1][i+1] = p3[i];
		}
	}
	
	long add(long a,long b){
        long sum = a+b;
        if(sum>=mod)
            sum -= mod;
        return sum;
    }
	long sub(long a,long b){
        long sub = a-b;
        if(sub<0)
            sub += mod;
        return sub;
    }
  long mul(long a,long b){
        return (a*b)%mod;
    }
	void run() throws Exception
	{
		is = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());
		out = new PrintWriter(System.out);
		
		long s = System.currentTimeMillis();
		solve();
		out.flush();
		if (!INPUT.isEmpty())
			tr(System.currentTimeMillis() - s + "ms");
	}
	
	public static void main(String[] args) throws Exception
	{
		new Thread(null, new Runnable()
		{
			public void run()
			{
				try
				{
					new C855().run();
				} catch (Exception e)
				{
					e.printStackTrace();
				}
			}
		}, "1", 1 << 26).start();
	}
	
	private byte[] inbuf = new byte[1024];
	public int lenbuf = 0, ptrbuf = 0;
	
	private int readByte()
	{
		if (lenbuf == -1)
			throw new InputMismatchException();
		if (ptrbuf >= lenbuf)
		{
			ptrbuf = 0;
			try
			{
				lenbuf = is.read(inbuf);
			} catch (IOException e)
			{
				throw new InputMismatchException();
			}
			if (lenbuf <= 0)
				return -1;
		}
		return inbuf[ptrbuf++];
	}
	
	private boolean isSpaceChar(int c)
	{
		return !(c >= 33 && c <= 126);
	}
	
	private int skip()
	{
		int b;
		while ((b = readByte()) != -1 && isSpaceChar(b))
			;
		return b;
	}
	
	private double nd()
	{
		return Double.parseDouble(ns());
	}
	
	private char nc()
	{
		return (char) skip();
	}
	
	private String ns()
	{
		int b = skip();
		StringBuilder sb = new StringBuilder();
		while (!(isSpaceChar(b)))
		{ // when nextLine, (isSpaceChar(b) && b !=
				// ' ')
			sb.appendCodePoint(b);
			b = readByte();
		}
		return sb.toString();
	}
	
	private char[] ns(int n)
	{
		char[] buf = new char[n];
		int b = skip(), p = 0;
		while (p < n && !(isSpaceChar(b)))
		{
			buf[p++] = (char) b;
			b = readByte();
		}
		return n == p ? buf : Arrays.copyOf(buf, p);
	}
	
	private char[][] nm(int n, int m)
	{
		char[][] map = new char[n][];
		for (int i = 0; i < n; i++)
			map[i] = ns(m);
		return map;
	}
	
	private int[] na(int n)
	{
		int[] a = new int[n];
		for (int i = 0; i < n; i++)
			a[i] = ni();
		return a;
	}
	
	private int ni()
	{
		int num = 0, b;
		boolean minus = false;
		while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))
			;
		if (b == '-')
		{
			minus = true;
			b = readByte();
		}
		
		while (true)
		{
			if (b >= '0' && b <= '9')
			{
				num = num * 10 + (b - '0');
			} else
			{
				return minus ? -num : num;
			}
			b = readByte();
		}
	}
	
	private long nl()
	{
		long num = 0;
		int b;
		boolean minus = false;
		while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))
			;
		if (b == '-')
		{
			minus = true;
			b = readByte();
		}
		
		while (true)
		{
			if (b >= '0' && b <= '9')
			{
				num = num * 10 + (b - '0');
			} else
			{
				return minus ? -num : num;
			}
			b = readByte();
		}
	}
	
	private void tr(Object... o)
	{
		System.out.println(Arrays.deepToString(o));
	}
}