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;
int upd(int x) { return x + (x >> 31 & Mod); }
int fpow(int x, int y) {
  int res = 1;
  while (y) {
    if (y & 1) res = 1ll * res * x % Mod;
    x = 1ll * x * x % Mod, y >>= 1;
  }
  return res;
}
const int MAX_N = 1 << 18 | 10;
vector<int> G[MAX_N];
long long S;
int N, fac[MAX_N], ifc[MAX_N];
int Limit, rev[MAX_N], omg[MAX_N];
void FFT_prepare(int len) {
  int p = 0;
  for (Limit = 1; Limit <= len; Limit <<= 1) p++;
  for (int i = 1; i < Limit; i++)
    rev[i] = (rev[i >> 1] >> 1) | ((i & 1) << (p - 1));
  static int L = 1;
  for (int &i = L; i < Limit; i <<= 1) {
    omg[i] = 1;
    int w = fpow(3, Mod / 2 / i);
    for (int j = 1; j < i; j++) omg[i + j] = 1ll * omg[i + j - 1] * w % Mod;
  }
}
void NTT(vector<int> &p, int op) {
  p.resize(Limit);
  for (int i = 0; i < Limit; i++)
    if (i < rev[i]) swap(p[i], p[rev[i]]);
  for (int i = 1; i < Limit; i <<= 1)
    for (int j = 0; j < Limit; j += i << 1)
      for (int k = 0; k < i; k++) {
        int x = p[j + k], y = 1ll * omg[i + k] * p[i + j + k] % Mod;
        p[j + k] = upd(x + y - Mod), p[i + j + k] = upd(x - y);
      }
  if (op != 1) {
    reverse(p.begin() + 1, p.end());
    for (int i = 0, inv = fpow(Limit, Mod - 2); i < Limit; i++)
      p[i] = 1ll * p[i] * inv % Mod;
  }
}
int fa[MAX_N], son[MAX_N], top[MAX_N], bot[MAX_N], siz[MAX_N];
int L[MAX_N], dfn[MAX_N], tim;
void dfs1(int x) {
  siz[x] = 1;
  for (int v : G[x]) {
    if (v == fa[x]) continue;
    fa[v] = x, dfs1(v), siz[x] += siz[v];
    if (siz[son[x]] < siz[v]) son[x] = v;
  }
}
void dfs2(int x, int tp) {
  dfn[L[x] = ++tim] = x, top[x] = tp, bot[tp] = x;
  if (son[x]) dfs2(son[x], tp);
  for (int v : G[x])
    if (v != son[x] && v != fa[x]) dfs2(v, v);
}
vector<int> F[MAX_N];
vector<int> Div1(int l, int r, vector<int> &seq) {
  if (l == r) return F[seq[l]];
  int mid = (l + r) >> 1;
  vector<int> L = Div1(l, mid, seq), R = Div1(mid + 1, r, seq);
  int len = 0;
  FFT_prepare(len = L.size() + R.size());
  NTT(L, 1), NTT(R, 1);
  for (int i = 0; i < Limit; i++) L[i] = 1ll * L[i] * R[i] % Mod;
  NTT(L, 0), L.resize(len);
  while (L.size() && !L.back()) L.pop_back();
  return L;
}
pair<vector<int>, vector<int> > Div2(int l, int r, vector<int> &seq) {
  if (l == r) return make_pair(F[seq[l]], F[seq[l]]);
  int mid = (l + r) >> 1;
  auto aL = Div2(l, mid, seq), aR = Div2(mid + 1, r, seq);
  auto bL = aL.first, bR = aR.first;
  auto cL = aL.second, cR = aR.second;
  vector<int> r1, r2;
  int len = 0;
  FFT_prepare(len = bL.size() + bR.size());
  r1.resize(Limit), r2.resize(Limit), NTT(bL, 1), NTT(bR, 1), NTT(cL, 1),
      NTT(cR, 1);
  for (int i = 0; i < Limit; i++) {
    r2[i] = 1ll * cL[i] * cR[i] % Mod;
    r1[i] = (bL[i] + 1ll * bR[i] * cL[i]) % Mod;
  }
  NTT(r1, 0), NTT(r2, 0);
  r1.resize(len), r2.resize(len);
  return make_pair(r1, r2);
}
void dfs(int x) {
  for (int v : G[x])
    if (v != fa[x]) dfs(v);
  vector<int> seq;
  for (int v : G[x]) {
    if (v == fa[x] || v == son[x]) continue;
    F[v][0] = 1, seq.push_back(v);
  }
  if (seq.size()) {
    F[x] = Div1(0, seq.size() - 1, seq);
    F[x].resize(F[x].size() + 1);
    for (int i = F[x].size(); i; i--) F[x][i] = F[x][i - 1];
    F[x][0] = 0;
  } else
    F[x].resize(2), F[x][1] = 1;
  if (x == top[x]) {
    seq.clear();
    for (int i = L[x]; i <= L[bot[x]]; i++) seq.push_back(dfn[i]);
    F[x] = Div2(0, seq.size() - 1, seq).first;
  }
}
int main() {
  scanf("%d %lld", &N, &S);
  for (int i = fac[0] = 1; i <= N; i++) fac[i] = 1ll * fac[i - 1] * i % Mod;
  ifc[N] = fpow(fac[N], Mod - 2);
  for (int i = N - 1; ~i; i--) ifc[i] = 1ll * ifc[i + 1] * (i + 1) % Mod;
  for (int i = 1; i < N; i++) {
    int u, v;
    scanf("%d %d", &u, &v);
    G[u].push_back(v), G[v].push_back(u);
  }
  dfs1(1), dfs2(1, 1), dfs(1);
  int ans = 0;
  for (int i = 1, down = 1; i <= min(N, (int)F[1].size()); i++) {
    ans = (ans + 1ll * ifc[i - 1] * down % Mod * F[1][i]) % Mod;
    down = down * ((S + i) % Mod) % Mod;
  }
  cout << ans << endl;
  return 0;
}