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 ll = long long;
using poly = std::vector<int>;
const int mod = 998244353;
const int maxn = 2e5 + 17;
int n, son[maxn], size[maxn], rev[maxn << 3], f[maxn << 3], g[maxn << 3],
    fac[maxn];
ll x;
std::vector<int> ch[maxn];
int dec(int x) { return x >= mod ? x - mod : x; }
int qpow(int a, int b) {
  if (b == 0) return 1;
  ll d = qpow(a, b >> 1);
  d = d * d % mod;
  if (b & 1) d = d * a % mod;
  return d;
}
void NTT(int *a, int lim, int flag) {
  for (int i = 1; i < lim; ++i)
    rev[i] = (rev[i >> 1] >> 1) | ((i & 1) * (lim >> 1));
  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) {
    int wn = qpow(3, (mod - 1) / (i << 1));
    if (flag == -1) wn = qpow(wn, mod - 2);
    for (int j = 0; j < lim; j += (i << 1))
      for (int k = 0, w = 1; k < i; ++k, w = (ll)w * wn % mod) {
        int a0 = a[j + k], a1 = (ll)w * a[j + k + i] % mod;
        a[j + k] = dec(a0 + a1);
        a[j + k + i] = dec(a0 - a1 + mod);
      }
  }
  if (flag == -1)
    for (int i = 0, inv = qpow(lim, mod - 2); i < lim; ++i)
      a[i] = (ll)a[i] * inv % mod;
}
poly mul(poly A, poly B) {
  int len = A.size() + B.size() - 1;
  int lim = 1;
  while (lim <= len) lim <<= 1;
  for (int i = 0; i < lim; ++i) {
    f[i] = g[i] = 0;
  }
  for (int i = 0; i < A.size(); ++i) f[i] = A[i];
  for (int i = 0; i < B.size(); ++i) g[i] = B[i];
  NTT(f, lim, 1);
  NTT(g, lim, 1);
  for (int i = 0; i < lim; ++i) f[i] = (ll)f[i] * g[i] % mod;
  NTT(f, lim, -1);
  poly C;
  C.resize(len);
  for (int i = 0; i < len; ++i) C[i] = f[i];
  return C;
}
poly plus(poly A, poly B) {
  poly C;
  C.resize(std::max(A.size(), B.size()));
  for (int i = 0; i < A.size(); ++i) C[i] = dec(C[i] + A[i]);
  for (int i = 0; i < B.size(); ++i) C[i] = dec(C[i] + B[i]);
  return C;
}
std::pair<std::vector<int>, std::vector<int> > solve(std::vector<poly> v) {
  if (v.empty()) return {{0}, {1}};
  if (v.size() == 1) return {v[0], v[0]};
  int len = v.size();
  int suf = len / 2;
  std::vector<poly> v2;
  for (int i = 1; i <= suf; ++i) {
    auto x = v.back();
    v.pop_back();
    v2.push_back(x);
  }
  std::reverse(v2.begin(), v2.end());
  auto A = solve(v), B = solve(v2);
  poly P = mul(A.second, B.second);
  poly Q = plus(mul(B.first, A.second), A.first);
  return {Q, P};
}
void HLD(int u, int f) {
  size[u] = 1;
  for (int v : ch[u]) {
    if (v == f) continue;
    HLD(v, u);
    size[u] += size[v];
    if (size[v] > size[son[u]]) son[u] = v;
  }
  if (f) ch[u].erase(std::find(ch[u].begin(), ch[u].end(), f));
}
void print(poly p) {
  for (int x : p) printf("%d ", x);
  puts("");
}
std::vector<int> dfs(int u) {
  int p = u, idx = 0;
  std::vector<std::vector<int> > array;
  while (p) {
    std::vector<int> F = {1};
    for (int v : ch[p]) {
      if (v != son[p]) {
        F = dfs(v);
      }
    }
    F.insert(F.begin(), 0);
    array.push_back(F);
    p = son[p];
  }
  std::vector<int> ans = solve(array).first;
  assert(ans[0] == 0);
  ans[0]++;
  return ans;
}
int main() {
  scanf("%d%lld", &n, &x);
  fac[0] = 1;
  for (int i = 1; i <= n; ++i) fac[i] = (ll)fac[i - 1] * i % mod;
  for (int i = 1; i < n; ++i) {
    int u, v;
    scanf("%d%d", &u, &v);
    ch[u].push_back(v);
    ch[v].push_back(u);
  }
  HLD(1, 0);
  std::vector<int> P = dfs(1);
  assert(P.size() == n + 1);
  int coef = 1;
  int s = x % mod, ans = 0;
  for (int i = 1; i <= n; ++i) {
    ans = (ans + (ll)coef * qpow(fac[i - 1], mod - 2) % mod * P[i] % mod) % mod;
    s = (s + 1) % mod;
    coef = (ll)coef * s % mod;
  }
  printf("%d", ans);
  return 0;
}