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 long long N = 1e5 + 5, M = 5.3e5 + 5, mod = 998244353, G = 3,
                Gi = 332748118;
char buf[1 << 23], *p1 = buf, *p2 = buf;
long long fst[N], nxt[N + N], u[N + N], v[N + N], tot;
long long g[M], gi[M], f[N], n, x, xm;
long long r[M], lim, l;
long long *pol[N], *ql[N], dt[M * 10], cl, ans;
long long siz[N], son[N], c[N];
long long read() {
  long long res = 0, fl = 0;
  char a =
      (p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, 1 << 21, stdin), p1 == p2)
           ? EOF
           : *p1++);
  while (a < '0' || a > '9')
    fl |= a == '-',
        a = (p1 == p2 &&
                     (p2 = (p1 = buf) + fread(buf, 1, 1 << 21, stdin), p1 == p2)
                 ? EOF
                 : *p1++);
  while (a >= '0' && a <= '9')
    res = res * 10 + a - '0',
    a = (p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, 1 << 21, stdin), p1 == p2)
             ? EOF
             : *p1++);
  return fl ? -res : res;
}
void add(long long lu, long long lv) {
  u[++tot] = lu, v[tot] = lv, nxt[tot] = fst[lu], fst[lu] = tot;
  u[++tot] = lv, v[tot] = lu, nxt[tot] = fst[lv], fst[lv] = tot;
}
long long ksm(long long di, long long mi) {
  long long res = 1;
  for (; mi; mi >>= 1, di = di * di % mod)
    if (mi & 1) res = res * di % mod;
  return res;
}
void ycl() {
  g[1 << 18] = gi[1 << 18] = 1, g[(1 << 18) + 1] = ksm(G, mod >> 19),
         gi[(1 << 18) + 1] = ksm(Gi, mod >> 19);
  long long i, j;
  for (i = (1 << 18) + 2; i < (1 << 19); i++)
    g[i] = g[i - 1] * g[(1 << 18) + 1] % mod,
    gi[i] = gi[i - 1] * gi[(1 << 18) + 1] % mod;
  for (i = (1 << 18) - 1; i; i--) g[i] = g[i << 1], gi[i] = gi[i << 1];
}
void init(long long len) {
  for (lim = 1, l = 0; lim < len; lim <<= 1, l++)
    ;
  for (long long i = 1; i < lim; i++)
    r[i] = r[i >> 1] >> 1 | ((i & 1) << l - 1);
}
void ch(long long &x) { x -= mod, x += x >> 63 & mod; }
void fft(long long *x, long long fl) {
  long long i, j, li, *w1, *wn, la, lb;
  for (i = 0; i < lim; i++)
    if (r[i] < i) swap(x[i], x[r[i]]);
  for (i = 1; i < lim; i <<= 1)
    for (j = 0, w1 = fl > 0 ? g + i : gi + i; j < lim; j += i << 1)
      for (li = 0, wn = w1; li < i; li++, wn++)
        la = x[j + li], lb = *wn * x[j + i + li] % mod, ch(x[j + li] = la + lb),
        ch(x[j + i + li] = la + mod - lb);
  if (fl < 0)
    for (i = 0, la = ksm(lim, mod - 2); i < lim; i++) x[i] = x[i] * la % mod;
}
void mul(long long *a, long long *b, long long *c, long long l1, long long l2) {
  long long i, j, la[(l1 + l2) * 3], lb[(l1 + l2) * 3];
  memset(la, 0, sizeof(la)), memset(lb, 0, sizeof(lb)), memcpy(la, a, l1 * 8),
      memcpy(lb, b, l2 * 8);
  if (l1 > 10 && l2 > 10) {
    init(l1 + l2), fft(la, 1), fft(lb, 1);
    for (i = 0; i < lim; i++) la[i] = la[i] * lb[i] % mod;
    for (fft(la, -1), i = 0; i < l1 + l2; i++) c[i] = la[i];
  } else {
    memset(c, 0, (l1 + l2) * 8);
    for (i = 0; i < l1; i++)
      for (j = 0; j < l2; j++) c[i + j] = (c[i + j] + la[i] * lb[j]) % mod;
  }
}
void dfs0(long long x, long long fa) {
  siz[x] = 1;
  for (long long i = fst[x]; i; i = nxt[i])
    if (v[i] != fa)
      dfs0(v[i], x), siz[x] += siz[v[i]],
          siz[v[i]] > siz[son[x]] && (son[x] = v[i]);
  for (long long i = fst[x]; i; i = nxt[i])
    if (v[i] != fa && v[i] != son[x]) c[x] = v[i];
}
void work(vector<long long> vc, long long len, long long *a, long long *b) {
  if (vc.size() == 1)
    return memcpy(a, pol[vc[0]], len * 8), memcpy(b, pol[vc[0]], len * 8),
           void();
  long long i, la[len * 2 + 5], lb[len * 2 + 5], lc[len * 2 + 5],
      ld[len * 2 + 5], Ll = 1, Rl = 1, Len = vc.size(), mid = (Len + 1) / 2;
  vector<long long> Ls, Rs;
  for (i = 0; i < mid; i++) Ls.push_back(vc[i]), Ll += siz[vc[i]] + 1;
  for (i = mid; i < Len; i++) Rs.push_back(vc[i]), Rl += siz[vc[i]] + 1;
  memset(la, 0, sizeof(la)), memset(lb, 0, sizeof(lb)),
      memset(lc, 0, sizeof(lc)), memset(ld, 0, sizeof(ld)),
      work(Ls, Ll, la, lb), work(Rs, Rl, lc, ld);
  mul(lb, ld, b, Ll, Rl), mul(lb, lc, a, Ll, Rl);
  for (i = 0; i < len; i++) ch(a[i] += la[i]);
}
void dfs(long long x, long long fa) {
  vector<long long> vc;
  for (long long i = x;
       c[i] && (pol[c[i]] = dt + cl, cl += siz[c[i]] + 2, ql[c[i]] = dt + cl,
               cl += siz[c[i]] + 2, dfs(c[i], i), 0),
                 vc.push_back(c[i]), son[i];
       i = son[i])
    ;
  work(vc, siz[x] + 1, pol[x], ql[x]), pol[x][0] = 1;
  if (x ^ 1)
    for (long long i = siz[x] + 1; i; i--) pol[x][i] = pol[x][i - 1];
  if (x ^ 1) pol[x][0] = 0;
}
signed main() {
  long long i, j;
  n = read(), x = read(), xm = x % mod, ycl(), pol[0] = dt + cl, cl += 2,
  pol[0][1] = 1;
  for (i = 1; i < n; i++) add(read(), read());
  dfs0(1, 0), pol[1] = dt + cl, cl += siz[1] + 2, ql[1] = dt + cl,
              cl += siz[1] + 2, dfs(1, 0);
  for (i = 1, j = 1; i <= siz[1];
       j = j * (xm + i) % mod * ksm(i, mod - 2) % mod, i++)
    ans = (ans + pol[1][i] * j) % mod;
  cout << ans;
  return 0;
}