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 mod = 998244353, G = 3, iG = (mod + 1) / G;
const int N = 3e5 + 7;
int qpow(int x, int y = mod - 2) {
  int res = 1;
  for (; y; x = (long long)x * x % mod, y >>= 1)
    if (y & 1) res = (long long)res * x % mod;
  return res;
}
int Lim, lim, pp[N], PowG[N], iPowG[N];
void revlim() {
  for (int i = 0, iE = lim - 1; i <= iE; i++)
    pp[i] = ((pp[i >> 1] >> 1) | ((i & 1) * (lim >> 1)));
}
void up(int x) {
  lim = 1;
  for (; lim <= x; lim <<= 1)
    ;
}
void cle(int *f) {
  for (int i = 0, iE = lim - 1; i <= iE; i++) f[i] = 0;
}
void init(int x) {
  int Pw;
  up(x), Lim = lim;
  Pw = qpow(G, (mod - 1) / Lim), PowG[0] = 1;
  for (int i = 1, iE = lim - 1; i <= iE; i++)
    PowG[i] = (long long)PowG[i - 1] * Pw % mod;
  Pw = qpow(iG, (mod - 1) / Lim), iPowG[0] = 1;
  for (int i = 1, iE = lim - 1; i <= iE; i++)
    iPowG[i] = (long long)iPowG[i - 1] * Pw % mod;
}
void NTT(int *f, int flag) {
  for (int i = 0, iE = lim - 1; i <= iE; i++)
    if (pp[i] < i) swap(f[pp[i]], f[i]);
  for (int i = 2; i <= lim; i <<= 1)
    for (int j = 0, l = (i >> 1), ch = Lim / i; j < lim; j += i)
      for (int k = j, now = 0; k < j + l; k++) {
        int pa = f[k], pb = (long long)f[k + l] *
                            (flag == 1 ? PowG[now] : iPowG[now]) % mod;
        f[k] = (pa + pb) % mod, f[k + l] = (pa + mod - pb) % mod, now += ch;
      }
  if (flag == -1) {
    int nylim = qpow(lim);
    for (int i = 0, iE = lim - 1; i <= iE; i++)
      f[i] = (long long)f[i] * nylim % mod;
  }
}
void Mul(int *f, int *g, int *ans, int n, int m) {
  static int A[N], B[N];
  up(n + m - 1), revlim(), cle(A), cle(B), copy(f, f + n, A), copy(g, g + m, B);
  NTT(A, 1), NTT(B, 1);
  for (int i = 0, iE = lim - 1; i <= iE; i++)
    A[i] = (long long)A[i] * B[i] % mod;
  NTT(A, -1), copy(A, A + n + m - 1, ans);
}
int n, m, fa[N];
int head[N], edge_id;
struct edge {
  int to, next;
} e[N << 1];
void add_edge(int u, int v) {
  ++edge_id, e[edge_id].next = head[u], e[edge_id].to = v, head[u] = edge_id;
}
int id[N], mp[N], hv[N], siz[N], idtot, dep[N];
void dfs1(int x) {
  id[x] = ++idtot, mp[idtot] = x, siz[x] = 1;
  for (int i = head[x]; i; i = e[i].next) {
    int v = e[i].to;
    if (v == fa[x]) continue;
    dep[v] = dep[x] + 1, fa[v] = x, dfs1(v), siz[x] += siz[v];
    if (siz[v] > siz[hv[x]]) hv[x] = v;
  }
}
int sav[N];
int tmp[N * 100], *Id = tmp, *ans[N], *lig[N], *g[N];
int szli[N], tot, sz[N], *ss[N], stot;
void divide1(int l, int r, int *a) {
  if (l == r) return copy(g[l], g[l] + sz[l] - sz[l - 1] + 1, a), void();
  int mid = (l + r) >> 1, *a1, *a2, len1 = sz[mid] - sz[l - 1] + 1,
      len2 = sz[r] - sz[mid] + 1;
  a1 = Id, Id += len1, a2 = Id, Id += len2;
  divide1(l, mid, a1), divide1(mid + 1, r, a2), Mul(a1, a2, a, len1, len2);
}
void divide2(int l, int r, int *a, int *b) {
  if (l == r) {
    int len = szli[l] - szli[l - 1] + 1;
    copy(ss[l], ss[l] + len, a), copy(ss[l], ss[l] + len, b);
    return;
  }
  int mid = (l + r) >> 1, *a1, *a2, *b1, *b2,
      len1 = szli[mid] - szli[l - 1] + 1, len2 = szli[r] - szli[mid] + 1;
  a1 = Id, Id += len1, a2 = Id, Id += len2, b1 = Id, Id += len1, b2 = Id,
  Id += len2;
  divide2(l, mid, a1, b1), divide2(mid + 1, r, a2, b2);
  Mul(b1, b2, b, len1, len2), Mul(a1, b2, a, len1, len2);
  for (int i = 0, iE = len2 - 1; i <= iE; i++) (a[i] += a2[i]) %= mod;
}
void dfs2(int x, bool flag) {
  for (int i = head[x]; i; i = e[i].next) {
    int v = e[i].to;
    if (v == fa[x] || v == hv[x]) continue;
    dfs2(v, 0);
  }
  if (hv[x]) dfs2(hv[x], 1);
  tot = 1;
  for (int i = head[x]; i; i = e[i].next) {
    int v = e[i].to;
    if (v == fa[x] || v == hv[x]) continue;
    ++tot, g[tot] = ans[v], sz[tot] = siz[v];
  }
  for (int i = 1, iE = tot; i <= iE; i++) sz[i] += sz[i - 1];
  lig[x] = Id, Id += sz[tot] + 2, divide1(1, tot, lig[x]);
  for (int i = sz[tot], iE = 0; i >= iE; i--) lig[x][i + 1] = lig[x][i];
  lig[x][0] = 0;
  ++stot, szli[stot] = sz[tot] + 1, ss[stot] = lig[x];
  if (flag == 0) {
    for (int i = 1, iE = stot; i <= iE; i++) szli[i] += szli[i - 1];
    ans[x] = Id, Id += szli[stot] + 1;
    divide2(1, stot, ans[x], sav), ans[x][0]++;
    stot = 0;
  }
}
long long x;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0), cout.tie(0);
  sz[1] = 1, g[1] = Id, g[1][0] = 1, Id++;
  cin >> n >> x, init(n << 1 | 1);
  for (int i = 1, iE = n - 1; i <= iE; i++) {
    int u, v;
    cin >> u >> v;
    add_edge(u, v), add_edge(v, u);
  }
  dfs1(1), dfs2(1, 0);
  int Ans = 0, res = 1;
  for (int i = 1, iE = n; i <= iE; i++)
    (Ans += (long long)res * ans[1][i] % mod) %= mod,
        res = (x + i) % mod * res % mod * qpow(i) % mod;
  cout << Ans << "\n";
  return 0;
}