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>
const int N = 262144;
const int mod = 998244353;
using LL = long long;
int rev[N], wn[N + 1], lim, s;
int pow(int x, int y) {
  int ans = 1;
  for (; y; y >>= 1, x = static_cast<LL>(x) * x % mod)
    if (y & 1) ans = static_cast<LL>(ans) * x % mod;
  return ans;
}
void fffffftinit(int len) {
  wn[0] = lim = 1, s = -1;
  while (lim < len) lim <<= 1, ++s;
  for (int i = 0; i < lim; ++i) rev[i] = rev[i >> 1] >> 1 | (i & 1) << s;
  const int g = pow(3, (mod - 1) / lim);
  for (int i = 1; i <= lim; ++i) wn[i] = static_cast<LL>(wn[i - 1]) * g % mod;
}
void reduce(int &x) { x += x >> 31 & mod; }
void fffffft(int *A, int typ) {
  for (int i = 0; i < lim; ++i)
    if (i < rev[i]) std::swap(A[i], A[rev[i]]);
  for (int i = 1; i < lim; i <<= 1) {
    const int t = lim / i / 2;
    for (int j = 0; j < lim; j += i << 1)
      for (int k = 0; k < i; ++k) {
        const int x = A[k + j], y = static_cast<LL>(A[k + j + i]) *
                                    wn[typ ? t * k : lim - t * k] % mod;
        reduce(A[k + j] += y - mod), reduce(A[k + j + i] = x - y);
      }
  }
  if (!typ) {
    const int il = pow(lim, mod - 2);
    for (int i = 0; i < lim; ++i) A[i] = static_cast<LL>(A[i]) * il % mod;
  }
}
int tA[N], tB[N];
struct poly {
  std::vector<int> poly_;
  void assign(int *L, int *R) { poly_.assign(L, R); }
  poly operator~() const {
    poly P = *this;
    P.poly_.insert(P.poly_.begin(), 0);
    return P;
  }
  poly operator-(const int &rhs) const {
    poly P = *this;
    P.poly_[0] -= rhs;
    return P;
  }
  poly operator+(const int &rhs) const {
    poly P = *this;
    P.poly_[0] += rhs;
    return P;
  }
  poly operator+(const poly &rhs) const {
    poly P;
    P.poly_.assign(std::max(this->size(), rhs.size()), 0);
    for (int i = 0; i < this->size(); ++i)
      reduce(P.poly_[i] += this->poly_[i] - mod);
    for (int i = 0; i < rhs.size(); ++i)
      reduce(P.poly_[i] += rhs.poly_[i] - mod);
    return P;
  }
  int size() const { return poly_.size(); }
  void debug() {
    for (int i = 0; i < size(); ++i) std::cout << poly_[i] << ' ';
    std::cout << '\n';
  }
  friend poly operator*(const poly &A, const poly &B) {
    poly res;
    int n = A.size(), m = B.size();
    fffffftinit(n + m - 1);
    std::copy(A.poly_.begin(), A.poly_.end(), tA),
        std::copy(B.poly_.begin(), B.poly_.end(), tB);
    std::memset(tA + n, 0, lim - n << 2), std::memset(tB + m, 0, lim - m << 2);
    fffffft(tA, 1), fffffft(tB, 1);
    for (int i = 0; i < lim; ++i) tA[i] = static_cast<LL>(tA[i]) * tB[i] % mod;
    fffffft(tA, 0);
    res.assign(tA, tA + n + m - 1);
    return res;
  }
};
int head[N], tot;
struct edge {
  int to, nxt;
} e[N];
void link(int x, int y) {
  e[++tot] = (edge){y, head[x]}, head[x] = tot;
  e[++tot] = (edge){x, head[y]}, head[y] = tot;
}
int size[N], go[N][2], n;
LL X;
int dfs0(int x, int f = 0) {
  for (int i = head[x]; i; i = e[i].nxt)
    if (e[i].to != f)
      go[x][static_cast<bool>(go[x][0])] = e[i].to, size[x] += dfs0(e[i].to, x);
  if (size[go[x][0]] < size[go[x][1]]) std::swap(go[x][0], go[x][1]);
  return ++size[x];
}
std::vector<poly> v[N];
int sum[N];
std::pair<poly, poly> solve_(int pos, int L, int R) {
  if (L == R) {
    poly P = v[pos][L];
    return std::make_pair(P + 1, P);
  }
  int mid = L + R >> 1;
  std::pair<poly, poly> l = solve_(pos, L, mid), r = solve_(pos, mid + 1, R);
  return std::make_pair((l.first - 1) * r.second + r.first,
                        l.second * r.second);
}
poly solve(int x, int top) {
  if (go[x][0]) solve(go[x][0], top);
  if (go[x][1]) {
    v[top].push_back(~solve(go[x][1], go[x][1]));
  } else {
    poly P;
    P.poly_ = {0, 1};
    v[top].push_back(P);
  }
  if (x == top)
    return solve_(top, 0, v[top].size() - 1).first;
  else {
    poly P;
    return P;
  }
}
int main() {
  std::cin >> n >> X;
  int x, y;
  for (int i = 1; i < n; ++i) std::cin >> x >> y, link(x, y);
  dfs0(1);
  poly ret = solve(1, 1);
  X %= mod;
  int C = 1, ans = 0;
  for (int i = 1; i <= n; ++i) {
    reduce(ans += static_cast<LL>(C) * ret.poly_[i] % mod - mod);
    C = static_cast<LL>(C) * pow(i, mod - 2) % mod * (X + i) % mod;
  }
  std::cout << ans << std::endl;
  return 0;
}