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;
template <class T>
inline void read(T &x) {
  static char ch;
  while (!isdigit(ch = getchar()))
    ;
  x = ch - '0';
  while (isdigit(ch = getchar())) x = x * 10 + ch - '0';
}
namespace modulo {
const int mod = 998244353;
const int modroot = 3;
inline void madd(int &x, const int &y) {
  x = x + y >= mod ? x + y - mod : x + y;
}
inline void mdec(int &x, const int &y) { x = x - y < 0 ? x - y + mod : x - y; }
inline int qpow(int x, int y) {
  int res = 1;
  for (; y; y >>= 1, x = 1LL * x * x % mod)
    if (y & 1) res = 1LL * res * x % mod;
  return res;
}
}  // namespace modulo
using namespace modulo;
namespace polynomial {
const int MaxL = 4e5 + 5;
const int MaxLog = 19;
int rev[MaxL], P, L, invL;
vector<int> w[MaxLog];
void degInit(int deg) {
  for (P = 0, L = 1; L < deg; ++P, L <<= 1)
    ;
  for (int i = 1; i < L; ++i)
    rev[i] = (rev[i >> 1] >> 1) | ((i & 1) << (P - 1));
  invL = qpow(L, mod - 2);
}
void wInit() {
  const int M = MaxLog - 1;
  for (int i = 1; i <= M; ++i) w[i].resize(1 << (i - 1));
  int omega = qpow(modroot, (mod - 1) / (1 << M));
  w[M][0] = 1;
  for (int i = 1; i < (1 << (M - 1)); ++i)
    w[M][i] = 1LL * w[M][i - 1] * omega % mod;
  for (int j = M - 1; j >= 1; --j)
    for (int i = 0; i < (1 << (j - 1)); ++i) w[j][i] = w[j + 1][i << 1];
}
struct czkakioi {
  czkakioi() { wInit(); }
} czkaknoi2020;
void DFT(vector<int> &a, int opt) {
  for (int i = 1; i < L; ++i)
    if (i < rev[i]) swap(a[i], a[rev[i]]);
  for (int k = 1, kp = 1; k < L; k <<= 1, ++kp)
    for (int i = 0; i < L; i += k << 1)
      for (int j = 0; j < k; ++j) {
        int u = a[i + j], v = 1LL * a[i + j + k] * w[kp][j] % mod;
        madd(a[i + j] = u, v), mdec(a[i + j + k] = u, v);
      }
  if (opt == -1) {
    reverse(a.begin() + 1, a.end());
    for (int i = 0; i < L; ++i) a[i] = 1LL * a[i] * invL % mod;
  }
}
vector<int> lsh(vector<int> a) {
  a.push_back(a.back());
  for (int i = a.size() - 1; i >= 1; --i) a[i] = a[i - 1];
  return a[0] = 0, a;
}
vector<int> operator+(vector<int> a, const vector<int> &b) {
  if (a.size() < b.size()) a.resize(b.size());
  for (int i = 0; i < (int)b.size(); ++i) madd(a[i], b[i]);
  return a;
}
vector<int> operator^(vector<int> a, const vector<int> &b) {
  for (int i = 0; i < L; ++i) a[i] = 1LL * a[i] * b[i] % mod;
  return a;
}
vector<int> operator*(vector<int> a, vector<int> b) {
  int deg = a.size() + b.size() - 1;
  degInit(deg), a.resize(L), b.resize(L);
  DFT(a, 1), DFT(b, 1), a = a ^ b, DFT(a, -1);
  return a.resize(deg), a;
}
}  // namespace polynomial
using polynomial::operator*;
using polynomial::operator+;
const int MaxN = 1e5 + 5;
vector<int> adj[MaxN];
namespace heavyLightDecomposition {
int fa[MaxN], sze[MaxN], hev[MaxN];
vector<int> f[MaxN];
void dfsInit(int u = 1) {
  sze[u] = 1;
  for (int v : adj[u])
    if (v != fa[u]) {
      fa[v] = u, dfsInit(v);
      if (sze[u] += sze[v], sze[v] > sze[hev[u]]) hev[u] = v;
    }
}
int segn;
vector<int> g[MaxN << 2][2];
void pathSolve(vector<int> &ver, int x = 1, int l = 0, int r = segn - 1) {
  if (l > r) return;
  if (l == r) return (void)(g[x][0] = g[x][1] = f[ver[l]]);
  int mid = (l + r) >> 1;
  pathSolve(ver, x << 1, l, mid), pathSolve(ver, x << 1 | 1, mid + 1, r);
  g[x][0] = g[x << 1][0] * g[x << 1 | 1][0];
  g[x][1] = g[x << 1][1] + g[x << 1][0] * g[x << 1 | 1][1];
}
void solve(int u = 1) {
  f[u] = {0, 1};
  for (int v : adj[u])
    if (v != fa[u] && v != hev[u]) {
      solve(v);
      f[u] = polynomial::lsh(f[v]);
    }
  if (hev[u]) solve(hev[u]);
  if (!fa[u] || u != hev[fa[u]]) {
    vector<int> ver;
    for (int x = u; x; x = hev[x]) ver.push_back(x);
    segn = ver.size(), pathSolve(ver), f[u] = g[1][1] + (vector<int>){1};
  }
}
}  // namespace heavyLightDecomposition
long long X;
int n, ind[MaxN];
int main() {
  using namespace heavyLightDecomposition;
  read(n), read(X), X %= mod;
  for (int i = 1; i < n; ++i) {
    int u, v;
    read(u), read(v);
    adj[u].push_back(v);
    adj[v].push_back(u);
  }
  dfsInit();
  solve();
  ind[1] = 1;
  for (int i = 2; i <= n; ++i)
    ind[i] = 1LL * ind[mod % i] * (mod - mod / i) % mod;
  int prod = 1, ans = 0;
  for (int i = 1; i <= n; ++i) {
    ans = (ans + 1LL * prod * f[1][i]) % mod;
    prod = 1LL * prod * (X + i) % mod * ind[i] % mod;
  }
  cout << ans << '\n';
  return 0;
}