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;
int n, ntt[132001], rev[132001], a, b, c[132001], d[132001], g[2][132001 * 2],
    head[132001], cnt, sz[132001], tp[132001], sn[132001];
long long s;
vector<int> as[132001], fu[132001];
struct edge {
  int t, next;
} ed[132001 * 2];
void adde(int f, int t) {
  ed[++cnt] = (edge){t, head[f]};
  head[f] = cnt;
  ed[++cnt] = (edge){f, head[t]};
  head[t] = cnt;
}
int pw(int a, int p) {
  int as = 1;
  while (p) {
    if (p & 1) as = 1ll * as * a % 998244353;
    a = 1ll * a * a % 998244353;
    p >>= 1;
  }
  return as;
}
void pre() {
  for (int i = 0; i < 2; i++)
    for (int j = 2; j <= 1 << 17; j <<= 1) {
      int st = 1, w = pw(3, (998244353 - 1) / j);
      if (i == 0) w = pw(w, 998244353 - 2);
      for (int k = 0; k < j >> 1; k++)
        g[i][j + k] = st, st = 1ll * st * w % 998244353;
    }
}
void dft(int s, int *a, int t) {
  for (int i = 0; i < s; i++)
    rev[i] = (rev[i >> 1] >> 1) | ((i & 1) * (s >> 1)), ntt[rev[i]] = a[i];
  for (int i = 2; i <= s; i <<= 1)
    for (int j = 0; j < s; j += i)
      for (int k = j, st = i; k < j + (i >> 1); k++, st++) {
        int v1 = ntt[k], v2 = 1ll * ntt[k + (i >> 1)] * g[t][st] % 998244353;
        ntt[k] = (v1 + v2) - (v1 + v2 >= 998244353 ? 998244353 : 0);
        ntt[k + (i >> 1)] = v1 - v2 + (v1 < v2 ? 998244353 : 0);
      }
  int inv = pw(s, t == 0 ? 998244353 - 2 : 0);
  for (int i = 0; i < s; i++) a[i] = 1ll * ntt[i] * inv % 998244353;
}
vector<int> polymul(vector<int> a, vector<int> b) {
  int s1 = a.size() - 1, s2 = b.size() - 1;
  if (s1 + s2 <= 200) {
    for (int i = 0; i <= s1 + s2; i++) c[i] = 0;
    for (int i = 0; i <= s1; i++)
      for (int j = 0; j <= s2; j++)
        c[i + j] = (c[i + j] + 1ll * a[i] * b[j]) % 998244353;
    vector<int> f;
    for (int i = 0; i <= s1 + s2; i++) f.push_back(c[i]);
    return f;
  }
  int l = 1;
  while (l <= s1 + s2 + 1) l <<= 1;
  for (int i = 0; i < l; i++) c[i] = d[i] = 0;
  for (int i = 0; i <= s1; i++) c[i] = a[i];
  for (int i = 0; i <= s2; i++) d[i] = b[i];
  dft(l, c, 1);
  dft(l, d, 1);
  for (int i = 0; i < l; i++) c[i] = 1ll * c[i] * d[i] % 998244353;
  dft(l, c, 0);
  vector<int> f;
  for (int i = 0; i <= s1 + s2; i++) f.push_back(c[i]);
  return f;
}
vector<int> polyadd(vector<int> a, vector<int> b) {
  int s1 = a.size() - 1, s2 = b.size() - 1;
  if (s1 > s2) {
    for (int i = 0; i <= s2; i++) a[i] = (a[i] + b[i]) % 998244353;
    return a;
  } else {
    for (int i = 0; i <= s1; i++) b[i] = (b[i] + a[i]) % 998244353;
    return b;
  }
}
struct sth {
  vector<int> a, b;
};
sth solve(int l, int r) {
  if (l == r) {
    sth tp;
    tp.b = fu[l];
    tp.a.push_back(1);
    return tp;
  }
  int mid = (l + r) >> 1;
  sth v1 = solve(l, mid), v2 = solve(mid + 1, r);
  return (sth){polyadd(v2.a, polymul(v1.a, v2.b)), polymul(v1.b, v2.b)};
}
vector<int> solve1(int l, int r) {
  if (l == r) return fu[l];
  int mid = (l + r) >> 1;
  return polymul(solve1(l, mid), solve1(mid + 1, r));
}
void dfs0(int u, int fa) {
  sz[u] = 1;
  for (int i = head[u]; i; i = ed[i].next)
    if (ed[i].t != fa)
      dfs0(ed[i].t, u), sn[u] = sz[sn[u]] < sz[ed[i].t] ? ed[i].t : sn[u],
                        sz[u] += sz[ed[i].t];
}
void dfs1(int u, int fa, int v) {
  tp[u] = v;
  if (sn[u]) dfs1(sn[u], u, v);
  for (int i = head[u]; i; i = ed[i].next)
    if (ed[i].t != fa && ed[i].t != sn[u]) dfs1(ed[i].t, u, ed[i].t);
  int ct = 0;
  for (int i = head[u]; i; i = ed[i].next)
    if (ed[i].t != fa && ed[i].t != sn[u]) fu[++ct] = as[ed[i].t];
  if (ct)
    as[u] = solve1(1, ct);
  else
    as[u].push_back(1);
  int s1 = as[u].size();
  as[u].push_back(0);
  for (int i = s1 - 1; i >= 0; i--) as[u][i + 1] = as[u][i];
  as[u][0] = 0;
  if (tp[u] == u) {
    int ct1 = 1, st = u;
    while (sn[st]) st = sn[st], ct1++;
    int ct2 = ct1;
    st = u;
    while (st) fu[ct2] = as[st], ct2--, st = sn[st];
    sth fuc = solve(1, ct1);
    as[u] = polyadd(fuc.a, fuc.b);
  }
}
int main() {
  scanf("%d%lld", &n, &s);
  pre();
  for (int i = 1; i < n; i++) scanf("%d%d", &a, &b), adde(a, b);
  dfs0(1, 0);
  dfs1(1, 0, 1);
  int tp = 1, as1 = 0;
  for (int i = 1; i <= n; i++) {
    as1 = (as1 + 1ll * tp * as[1][i]) % 998244353;
    tp = 1ll * tp * ((s + i) % 998244353) % 998244353 * pw(i, 998244353 - 2) %
         998244353;
  }
  printf("%d\n", as1);
}