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 <typename T>
inline T read() {
  T x = 0, f = 0;
  char c = getchar();
  while (!isdigit(c)) f = c == '-', c = getchar();
  while (isdigit(c)) x = x * 10 + c - 48, c = getchar();
  return f ? -x : x;
}
namespace run {
const int N = 4e5 + 9, mod = 998244353;
inline int add(int x, int y) { return x + y >= mod ? x - mod + y : x + y; }
inline int sub(int x, int y) { return x >= y ? x - y : x + mod - y; }
inline int qpow(int x, int y) {
  int ret = 1;
  while (y) {
    if (y & 1) ret = 1LL * ret * x % mod;
    x = 1LL * x * x % mod;
    y >>= 1;
  }
  return ret;
}
int limit, bit, rev[N], Gi = qpow(3, mod - 2);
inline void prepare(int len) {
  limit = 1, bit = 0;
  while (limit < len) limit <<= 1, bit++;
  for (int i = 1; i < limit; i++)
    rev[i] = (rev[i >> 1] >> 1) | ((i & 1) << (bit - 1));
}
inline void NTT(int *a, int inv) {
  for (int i = 1; i < limit; i++)
    if (i < rev[i]) swap(a[i], a[rev[i]]);
  for (int mid = 1; mid < limit; mid <<= 1) {
    int tmp = qpow(~inv ? 3 : Gi, (mod - 1) / (mid << 1));
    for (int i = 0, R = mid << 1; i < limit; i += R)
      for (int j = 0, omega = 1; j < mid;
           j++, omega = 1LL * omega * tmp % mod) {
        int x = a[i + j], y = 1LL * omega * a[i + j + mid] % mod;
        a[i + j] = add(x, y), a[i + j + mid] = sub(x, y);
      }
  }
  if (inv == -1) {
    inv = qpow(limit, mod - 2);
    for (int i = 0; i < limit; i++) a[i] = 1LL * a[i] * inv % mod;
  }
}
int head[N], to[N], nex[N], cnt;
inline void adde(int u, int v) {
  nex[++cnt] = head[u];
  head[u] = cnt;
  to[cnt] = v;
}
int fa[N], siz[N], son[N];
inline void dfs(int u, int _f) {
  siz[u] = 1, fa[u] = _f;
  for (int i = head[u]; i; i = nex[i])
    if (to[i] ^ _f) {
      dfs(to[i], u), siz[u] += siz[to[i]];
      if (siz[to[i]] > siz[son[u]]) son[u] = to[i];
    }
}
int X[N], Y[N];
inline vector<int> operator*(vector<int> a, vector<int> b) {
  int n = a.size(), m = b.size();
  prepare(n + m - 1);
  for (int i = 0; i < limit; i++) X[i] = Y[i] = 0;
  for (int i = 0; i < n; i++) X[i] = a[i];
  for (int i = 0; i < m; i++) Y[i] = b[i];
  NTT(X, 1), NTT(Y, 1);
  for (int i = 0; i < limit; i++) X[i] = 1LL * X[i] * Y[i] % mod;
  NTT(X, -1), a.resize(n + m - 1);
  for (int i = 0; i < n + m - 1; i++) a[i] = X[i];
  return a;
}
inline vector<int> operator+(const vector<int> &a, const vector<int> &b) {
  vector<int> c = a;
  if (a.size() < b.size()) c.resize(b.size());
  for (int i = 0; i < (int)b.size(); i++) c[i] = add(c[i], b[i]);
  return c;
}
vector<int> a[N], foo[N];
inline void cdq(int l, int r, vector<int> &z, vector<int> &w) {
  if (l == r) {
    z = w = a[l], z[0]++;
    return;
  }
  int mid = (l + r) >> 1;
  vector<int> zl, zr, wl, wr;
  cdq(l, mid, zl, wl), cdq(mid + 1, r, zr, wr);
  zr[0]--;
  z = zr * wl + zl, w = wl * wr;
}
inline vector<int> dfs(int u) {
  int ori = u;
  for (u = ori; u; u = son[u]) {
    for (int i = head[u]; i; i = nex[i])
      if (to[i] ^ fa[u] && to[i] ^ son[u]) foo[u] = dfs(to[i]);
    if (foo[u].empty()) foo[u].push_back(1);
    foo[u].insert(foo[u].begin(), 0);
  }
  int len = 0;
  for (u = ori, len = 0; u; u = son[u]) a[++len] = foo[u];
  vector<int> z, w;
  cdq(1, len, z, w);
  for (int i = 1; i <= len; i++) a[i].clear();
  return z;
}
int n, m, inv[N];
int main() {
  n = read<int>(), m = 1LL * read<long long>() % mod;
  for (int i = 1; i < n; i++) {
    int u = read<int>(), v = read<int>();
    adde(u, v), adde(v, u);
  }
  dfs(1, 0);
  vector<int> ret = dfs(1);
  int C = 1, ans = 0;
  inv[0] = inv[1] = 1;
  for (int i = 2; i <= n; i++)
    inv[i] = 1LL * (mod - mod / i) * inv[mod % i] % mod;
  for (int i = 1; i < (int)ret.size(); i++) {
    ans = add(ans, 1LL * C * ret[i] % mod);
    C = 1LL * C * add(m, i) % mod * inv[i] % mod;
  }
  printf("%d\n", ans);
  return 0;
}
}  // namespace run
int main() { return run::main(); }