Problem: The Main Martian Tree grows on Mars. It is a binary tree (a rooted tree, with no more than two sons at each vertex) with n vertices, where the root vertex has the number 1. Its fruits are the Main Martian Fruits. It's summer now, so this tree does not have any fruit yet.

Autumn is coming soon, and leaves and branches will begin to fall off the tree. It is clear, that if a vertex falls off the tree, then its entire subtree will fall off too. In addition, the root will remain on the tree. Formally: the tree will have some connected subset of vertices containing the root.

After that, the fruits will grow on the tree (only at those vertices which remain). Exactly x fruits will grow in the root. The number of fruits in each remaining vertex will be not less than the sum of the numbers of fruits in the remaining sons of this vertex. It is allowed, that some vertices will not have any fruits.

Natasha wondered how many tree configurations can be after the described changes. Since this number can be very large, output it modulo 998244353.

Two configurations of the resulting tree are considered different if one of these two conditions is true:

  * they have different subsets of remaining vertices;
  * they have the same subset of remaining vertices, but there is a vertex in this subset where they have a different amount of fruits.

Input

The first line contains two integers: n and x (1 ≤ n ≤ 10^5, 0 ≤ x ≤ 10^{18}) — the size of the tree and the number of fruits in the root.

The i-th of the following (n-1) lines contains two integers a_i and b_i (1 ≤ a_i, b_i ≤ n) — vertices connected by the i-th edge of the tree.

It is guaranteed that the input data describes a correct binary tree with the root at the vertex 1.

Output

Print one number — the number of configurations of the resulting tree modulo 998244353.

Examples

Input

3 2
1 2
1 3


Output

13


Input

2 5
1 2


Output

7


Input

4 10
1 2
1 3
3 4


Output

441

Note

Consider the first example. <image>

There are 2 fruits at the vertex 1. The following 13 options are possible:

  * there is no vertex 2, there is no vertex 3; <image>
  * there is no vertex 2, there are no fruits at the vertex 3; <image>
  * there is no vertex 2, there is 1 fruit at the vertex 3; <image>
  * there is no vertex 2, there are 2 fruits at the vertex 3; <image>
  * there are no fruits at the vertex 2, there is no vertex 3; <image>
  * there are no fruits at the vertex 2, there are no fruits at the vertex 3; <image>
  * there are no fruits at the vertex 2, there is 1 fruit at the vertex 3; <image>
  * there are no fruits at the vertex 2, there are 2 fruits at the vertex 3; <image>
  * there is 1 fruit at the vertex 2, there is no vertex 3; <image>
  * there is 1 fruit at the vertex 2, there are no fruits at the vertex 3; <image>
  * there is 1 fruit at the vertex 2, there is 1 fruit at the vertex 3; <image>
  * there are 2 fruits at the vertex 2, there is no vertex 3; <image>
  * there are 2 fruits at the vertex 2, there are no fruits at the vertex 3. <image>



Consider the second example. There are 5 fruits at the vertex 1. The following 7 options are possible:

  * there is no vertex 2;
  * there are no fruits at the vertex 2;
  * there is 1 fruit at the vertex 2;
  * there are 2 fruits at the vertex 2;
  * there are 3 fruits at the vertex 2;
  * there are 4 fruits at the vertex 2;
  * there are 5 fruits at the vertex 2.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
int t1[1600001], t2[1600001], w[1600001], R[1600001], lim, n;
long long x;
const int P = 998244353;
inline int mul(const int &a, const int &b) { return 1ll * a * b % P; }
inline int sub(int a, const int &b) {
  a -= b;
  return (a < 0) ? a + P : a;
}
inline int add(int a, const int &b) {
  a += b;
  return (a >= P) ? a - P : a;
}
int qsm(int a, int b) {
  int ans = 1;
  while (b) {
    if (b & 1) ans = mul(ans, a);
    a = mul(a, a);
    b >>= 1;
  }
  return ans;
}
void NTT(int *a) {
  for (int i = 0; i < lim; i++)
    if (i < R[i]) std::swap(a[i], a[R[i]]);
  for (int i = 1; i < lim; i <<= 1)
    for (int j = 0; j < lim; j += (i << 1))
      for (int k = 0; k < i; k++) {
        const int Ny = mul(a[i + j + k], w[i + k]);
        a[i + j + k] = sub(a[j + k], Ny);
        a[j + k] = add(a[j + k], Ny);
      }
}
std::vector<int> operator*(std::vector<int> a, std::vector<int> b) {
  int size = a.size() + b.size() - 1;
  lim = 1;
  while (lim <= size) lim <<= 1;
  for (int i = 0; i < lim; i++)
    R[i] = (R[i >> 1] >> 1) | ((i & 1) ? lim >> 1 : 0);
  memset(t1, 0, lim << 2);
  memset(t2, 0, lim << 2);
  for (int i = a.size() - 1; ~i; --i) t1[i] = a[i];
  for (int i = b.size() - 1; ~i; --i) t2[i] = b[i];
  NTT(t1);
  NTT(t2);
  for (int i = 0; i < lim; i++) t1[i] = mul(t1[i], t2[i]);
  NTT(t1);
  std::reverse(t1 + 1, t1 + lim);
  int inv = qsm(lim, P - 2);
  a.resize(size);
  for (int i = 0; i < size; i++) a[i] = mul(t1[i], inv);
  return a;
}
void operator+=(std::vector<int> &a, std::vector<int> b) {
  if (a.size() < b.size()) a.resize(b.size());
  for (int i = 0; i < b.size(); i++) a[i] = add(a[i], b[i]);
}
struct matrix {
  std::vector<int> num[2][2];
  matrix operator*(matrix a) {
    matrix c;
    for (int i = 0; i < 2; i++)
      for (int j = 0; j < 2; j++) {
        c.num[i][j].clear();
        for (int k = 0; k < 2; k++) c.num[i][j] += num[i][k] * a.num[k][j];
      }
    return c;
  }
} mat[100001];
std::vector<int> ans[100001];
int head[100001], nxt[200001], b[200001], k, son[100001], light[100001],
    top[100001], size[100001], fa[100001];
void push(int s, int t) {
  nxt[++k] = head[s];
  head[s] = k;
  b[k] = t;
}
void dfs1(int x, int f) {
  size[x] = 1;
  fa[x] = f;
  for (int i = head[x]; i; i = nxt[i])
    if (b[i] != f) {
      dfs1(b[i], x);
      size[x] += size[b[i]];
      if (size[son[x]] < size[b[i]]) son[x] = b[i];
    }
}
void solve(int l, int r) {
  if (l == r) return;
  solve(l, (l + r) >> 1), solve(((l + r) >> 1) + 1, r);
  mat[l] = mat[((l + r) >> 1) + 1] * mat[l];
}
void getans(int x) {
  int top = 0;
  for (int tem = x; tem; tem = son[tem]) {
    for (int j = head[tem]; j; j = nxt[j])
      if (b[j] != fa[tem] && b[j] != son[tem]) getans(b[j]);
  }
  for (int tem = x; tem; tem = son[tem]) {
    ++top;
    if (ans[tem].size() < 1) ans[tem].resize(1);
    ans[tem][0] = add(ans[tem][0], 1);
    ans[tem].push_back(0);
    for (int i = ans[tem].size() - 1; i; i--) ans[tem][i] = ans[tem][i - 1];
    ans[tem][0] = 0;
    mat[top].num[0][0] = mat[top].num[1][0] = ans[tem];
    ans[tem].clear();
    mat[top].num[0][1].clear();
    mat[top].num[1][1].resize(1);
    mat[top].num[1][1][0] = 1;
  }
  solve(1, top);
  ans[fa[x]] = mat[1].num[1][0];
}
int main() {
  scanf("%d%lld", &n, &x);
  for (int i = 1, wn; i < (800000); i <<= 1) {
    wn = qsm(3, (P - 1) / (i << 1)), w[i] = 1;
    for (int j = 1; j < i; j++) w[i + j] = mul(w[i + j - 1], wn);
  }
  for (int i = 1, u, v; i < n; i++)
    scanf("%d%d", &u, &v), push(u, v), push(v, u);
  dfs1(1, 0);
  getans(1);
  int fin = 0;
  for (int i = 1, Mul = 1; i < ans[0].size(); i++) {
    fin = add(fin, mul(ans[0][i], Mul));
    Mul = mul(Mul, (x + i) % P);
    Mul = mul(Mul, qsm(i, P - 2));
  }
  printf("%d\n", fin);
}