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>
using namespace std;
const int MAXN = 2e5 + 5, MAXS = 1e7, mod = 998244353, G = 3,
          invG = (mod + 1) / 3;
int n;
long long m;
int cnte, h[MAXN], to[MAXN << 1], nx[MAXN << 1];
inline void adde(int u, int v) {
  cnte++;
  nx[cnte] = h[u];
  to[cnte] = v;
  h[u] = cnte;
}
int fa[MAXN], siz[MAXN], son[MAXN];
void Dfs1(int u) {
  siz[u] = 1;
  for (int i = h[u]; i; i = nx[i]) {
    int v = to[i];
    if (v == fa[u]) continue;
    fa[v] = u;
    Dfs1(v);
    siz[u] += siz[v];
    if (siz[son[u]] < siz[v]) son[u] = v;
  }
  return;
}
int top[MAXN], seg[MAXN], rev[MAXN], ed[MAXN];
int buf[MAXN], g[MAXN];
int tmp[MAXS], *ans[MAXN << 2], *mul[MAXN << 2], *pt, len[MAXN << 2];
long long Fstpw(long long a, int b) {
  long long res = 1;
  while (b) {
    if (b & 1) res = res * a % mod;
    b >>= 1;
    a = a * a % mod;
  }
  return res;
}
void ntt(int *a, int n, int tp) {
  int bit = 0;
  while (1 << bit < n) bit++;
  static int rev[MAXN << 2];
  for (int i = 1; i < n; i++) {
    rev[i] = rev[i >> 1] >> 1 | ((i & 1) << bit - 1);
    if (i < rev[i]) swap(a[i], a[rev[i]]);
  }
  for (int mid = 1; mid < n; mid <<= 1) {
    long long w = 1, w1 = Fstpw(tp == 1 ? G : invG, (mod - 1) / mid / 2);
    for (int j = 0; j < mid; j++, w = w * w1 % mod)
      for (int i = 0; i < n; i += mid * 2) {
        int x = a[i + j], y = w * a[i + j + mid] % mod;
        a[i + j] = (x + y) % mod;
        a[i + j + mid] = (x - y + mod) % mod;
      }
  }
  if (tp == -1) {
    long long t = Fstpw(n, mod - 2);
    for (int i = 0; i < n; i++) a[i] = a[i] * t % mod;
  }
  return;
}
int *NTT(int *a, int n, int *b, int m, int *res) {
  int siz = 1;
  while (siz <= n + m) siz <<= 1;
  static int f[MAXN << 2], g[MAXN << 2];
  for (int i = 0; i < siz; i++) {
    f[i] = i <= n ? a[i] : 0;
    g[i] = i <= m ? b[i] : 0;
  }
  ntt(f, siz, 1);
  ntt(g, siz, 1);
  for (int i = 0; i < siz; i++) f[i] = 1ll * f[i] * g[i] % mod;
  ntt(f, siz, -1);
  int k = n + m;
  for (int i = 0; i <= k; i++) res[i] = f[i];
  return res + k + 1;
}
void Dfs3(int k, int l, int r) {
  if (l == r) {
    int u = rev[l];
    if (g[u]) {
      len[k] = siz[g[u]] + 1;
      ans[k] = pt;
      ans[k][0] = 0;
      ans[k][1] = 1;
      for (int i = 2; i <= len[k]; i++) ans[k][i] = buf[seg[g[u]] + i - 2];
      pt += len[k] + 1;
      mul[k] = pt;
      memcpy(mul[k], ans[k], len[k] + 1 << 2);
      pt += len[k] + 1;
    } else {
      len[k] = 1;
      ans[k] = pt;
      ans[k][0] = 0;
      ans[k][1] = 1;
      pt += 2;
      mul[k] = pt;
      mul[k][0] = 0;
      mul[k][1] = 1;
      pt += 2;
    }
    return;
  }
  int mid = l + r >> 1;
  Dfs3(k << 1, l, mid);
  Dfs3(k << 1 | 1, mid + 1, r);
  len[k] = len[k << 1] + len[k << 1 | 1];
  mul[k] = pt;
  pt = NTT(mul[k << 1], len[k << 1], mul[k << 1 | 1], len[k << 1 | 1], mul[k]);
  ans[k] = pt;
  pt = NTT(ans[k << 1 | 1], len[k << 1 | 1], mul[k << 1], len[k << 1], ans[k]);
  for (int i = 0; i <= len[k << 1]; i++)
    ans[k][i] = (ans[k][i] + ans[k << 1][i]) % mod;
  return;
}
void Dfs2(int u) {
  seg[u] = ++*seg;
  rev[*seg] = u;
  g[u] = 0;
  if (son[u]) {
    top[son[u]] = top[u];
    Dfs2(son[u]);
  } else
    ed[top[u]] = u;
  for (int i = h[u]; i; i = nx[i]) {
    int v = to[i];
    if (v == fa[u] || v == son[u]) continue;
    top[v] = v;
    Dfs2(v);
    g[u] = v;
  }
  if (top[u] == u) {
    pt = tmp;
    Dfs3(1, seg[u], seg[ed[u]]);
    memcpy(buf + seg[u], ans[1] + 1, siz[u] << 2);
  }
  return;
}
int main() {
  scanf("%d%lld", &n, &m);
  for (int i = 1; i < n; i++) {
    int u, v;
    scanf("%d%d", &u, &v);
    adde(u, v);
    adde(v, u);
  }
  Dfs1(1);
  top[1] = 1;
  Dfs2(1);
  int ans = 0;
  long long t = 1;
  for (int i = 1; i <= n; i++) {
    ans = (ans + t * buf[i]) % mod;
    t = (m + i) % mod * t % mod * Fstpw(i, mod - 2) % mod;
  }
  printf("%d\n", ans);
  return 0;
}