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 N = 262144, md = 998244353;
int n;
unsigned long long V;
int rev[N * 2], W[N], lim, _ilim;
int head[N], cnt;
int dep[N], fa[N], top[N], sz[N], son[N];
int ID[N], t, ans;
vector<int> F[N];
struct edge {
  int to, nxt;
} e[N];
inline int pow(int a, int b) {
  int res = 1;
  for (; b; b >>= 1, a = (unsigned long long)a * a % md)
    if (b & 1) res = (unsigned long long)res * a % md;
  return res;
}
void init_() {
  for (int i = 1; i < N; i <<= 1) {
    const int g = pow(114514, (md - 1) / (i << 1));
    W[i] = 1;
    for (int j = 1; j < i; ++j)
      W[i + j] = (unsigned long long)W[i + (j - 1)] * g % md;
  }
  for (int i = 1; i <= N; i <<= 1)
    for (int j = 1; j < i; ++j)
      rev[i + j] = (rev[i + j / 2] >> 1) | ((j & 1) * (i / 2));
}
inline void init(int n) {
  for (lim = 1; lim < n; lim <<= 1)
    ;
  _ilim = pow(lim, md - 2);
}
void DFT(int* b) {
  static unsigned long long a[N];
  for (int i = 0; i < lim; ++i) a[i] = b[rev[i + lim]];
  for (int i = 1; i < lim; i <<= 1)
    for (int j = 0; j < lim; j += i << 1)
      for (int k = 0; k < i; ++k) {
        const unsigned long long x = a[j + k], y = a[j + k + i] * W[i + k] % md;
        a[j + k] += y, a[j + k + i] = x + md - y;
      }
  for (int i = 0; i < lim; ++i) b[i] = a[i] % md;
}
void IDFT(int* a) {
  DFT(a), reverse(a + 1, a + lim);
  for (int i = 0; i < lim; ++i) a[i] = (unsigned long long)a[i] * _ilim % md;
}
void dfs(int u) {
  sz[u] = 1;
  for (int i = head[u]; i; i = e[i].nxt)
    if (!dep[e[i].to]) {
      dep[e[i].to] = dep[u] + 1;
      fa[e[i].to] = u;
      dfs(e[i].to);
      sz[u] += sz[e[i].to];
      if (!son[u] || sz[son[u]] < sz[e[i].to]) son[u] = e[i].to;
    }
}
void dfs2(int u) {
  if (son[u]) top[son[u]] = top[u], dfs2(son[u]);
  for (int i = head[u]; i; i = e[i].nxt)
    if (dep[e[i].to] > dep[u] && e[i].to != son[u])
      dfs2(top[e[i].to] = e[i].to);
}
vector<int> tmp, tmp2;
void solve(int l, int r, vector<int>& v0, vector<int>& v1, bool tag = 1) {
  if (l == r) {
    v0 = F[ID[l]];
    if (tag) v1 = v0;
    return;
  }
  const int mid = (l + r) / 2;
  vector<int> L0, L1, R0, R1;
  solve(l, mid, L0, L1, tag), solve(mid + 1, r, R0, R1);
  static int A[N], B[N];
  int sz = L0.size() + R1.size() - 1;
  init(sz);
  for (int i = 0; i < lim; ++i) A[i] = B[i] = 0;
  for (int i = 0; i < (int)L0.size(); ++i) A[i] = L0[i];
  for (int i = 0; i < (int)R1.size(); ++i) B[i] = R1[i];
  DFT(A), DFT(B);
  for (int i = 0; i < lim; ++i) A[i] = (unsigned long long)A[i] * B[i] % md;
  IDFT(A);
  v0.reserve(sz);
  for (int i = 0; i < sz; ++i) v0.emplace_back(A[i]);
  for (int i = 0; i < (int)R0.size(); ++i) v0[i] = (v0[i] + R0[i]) % md;
  if (tag) {
    for (int i = 0; i < lim; ++i) A[i] = 0;
    for (int i = 0; i < (int)L1.size(); ++i) A[i] = L1[i];
    DFT(A);
    for (int i = 0; i < lim; ++i) A[i] = (unsigned long long)A[i] * B[i] % md;
    IDFT(A);
    v1.reserve(sz);
    for (int i = 0; i < sz; ++i) v1.emplace_back(A[i]);
  }
}
void DFS(int u) {
  for (int x = u; x; x = son[x]) {
    for (int i = head[x]; i; i = e[i].nxt)
      if (dep[e[i].to] > dep[x] && e[i].to != son[x]) {
        DFS(e[i].to);
        (++F[e[i].to][0]) %= md;
      }
    t = 0;
    for (int i = head[x]; i; i = e[i].nxt)
      if (dep[e[i].to] > dep[x] && e[i].to != son[x]) ID[++t] = e[i].to;
    if (t == 0)
      F[x] = F[0];
    else {
      auto& g = F[ID[1]];
      F[x].resize(g.size() + 1);
      for (int i = 0; i < (int)g.size(); ++i) F[x][i + 1] = g[i];
    }
  }
  t = 0;
  for (int x = u; x; x = son[x]) ID[++t] = x;
  reverse(ID + 1, ID + t + 1);
  tmp.clear();
  tmp2.clear();
  solve(1, t, tmp, tmp2, 0);
  F[u] = tmp;
}
void getans() {
  auto& vc = F[1];
  if (V == 0) ans = vc[0];
  int X = 1, Y = 1;
  for (int i = 1; i < (int)vc.size(); ++i) {
    ans = (ans + (unsigned long long)X * Y % md * vc[i]) % md;
    Y = (unsigned long long)Y * pow(i, md - 2) % md;
    X = (unsigned long long)X * (V % md + i) % md;
  }
}
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  init_();
  cin >> n >> V;
  for (int i = 1; i < n; ++i) {
    int u, v;
    cin >> u >> v;
    e[++cnt] = (edge){v, head[u]}, head[u] = cnt;
    e[++cnt] = (edge){u, head[v]}, head[v] = cnt;
  }
  dfs(dep[1] = 1), dfs2(top[1] = 1);
  F[0].emplace_back(0), F[0].emplace_back(1);
  DFS(1);
  getans();
  cout << ans << '\n';
  return 0;
}