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;
char bu[1000005], *cr, *cl;
template <typename T>
void rd(T &x) {
  x = 0;
  T f = 1;
  char ch = cl == cr && (cr = (cl = bu) + fread(bu, 1, 100000, stdin), cl == cr)
                ? EOF
                : *cl++;
  while (!isdigit(ch)) {
    if (ch == '-') f = -1;
    ch = cl == cr && (cr = (cl = bu) + fread(bu, 1, 100000, stdin), cl == cr)
             ? EOF
             : *cl++;
  }
  while (isdigit(ch))
    x = x * 10 + ch - '0',
    ch = cl == cr && (cr = (cl = bu) + fread(bu, 1, 100000, stdin), cl == cr)
             ? EOF
             : *cl++;
  x *= f;
}
using lol = long long;
using VI = vector<int>;
using VVI = vector<VI>;
using PVV = pair<VI, VI>;
const int N = 3e5 + 5, mod = 998244353;
void chk(int &x) { x -= mod, x += x >> 31 & mod; }
int mul(int x, int y) { return 1ll * x * y % mod; }
int Pow(int x, int y) {
  int z = 1;
  for (; y; y >>= 1, x = mul(x, x))
    if (y & 1) z = mul(z, x);
  return z;
}
int ch[N][2], sz[N], rev[N];
VI vet[N], G[N];
void dfs0(int u, int f) {
  sz[u] = 1;
  for (int v : G[u])
    if (v ^ f) {
      dfs0(v, u);
      if (sz[v] > sz[ch[u][0]]) ch[u][0] = v;
      sz[u] += sz[v];
    }
  for (int v : G[u])
    if (v ^ f && v ^ ch[u][0]) ch[u][1] = v;
}
void FFT(int n, VI &a, int tp) {
  for (int i = 0; i < n; ++i)
    if (i < rev[i]) swap(a[i], a[rev[i]]);
  for (int l = 2; l <= n; l <<= 1) {
    int wn = Pow(3, (mod - 1) / l);
    if (tp == -1) wn = Pow(wn, mod - 2);
    for (int i = 0; i < n; i += l) {
      int tmp = 1;
      for (int j = i; j < i + (l >> 1); ++j, tmp = mul(tmp, wn)) {
        int x = a[j], y = mul(tmp, a[j + (l >> 1)]);
        chk(a[j] = x + y), chk(a[j + (l >> 1)] = x + mod - y);
      }
    }
  }
  if (~tp) return;
  int inv = Pow(n, mod - 2);
  for (int i = 0; i < n; ++i) a[i] = mul(a[i], inv);
}
VI Mul(VI &a, VI &b) {
  int m = a.size() + b.size() - 1, l = 1;
  if (max(a.size(), b.size()) <= 64) {
    VI c;
    c.resize(m);
    for (int i = 0; i < a.size(); ++i)
      for (int j = 0; j < b.size(); ++j) chk(c[i + j] += mul(a[i], b[j]));
    return c;
  }
  while (l < m) l <<= 1;
  for (int i = 0; i < l; ++i)
    rev[i] = rev[i >> 1] >> 1 | ((i & 1) ? l >> 1 : 0);
  VI na = a, nb = b;
  na.resize(l), nb.resize(l);
  FFT(l, na, 1), FFT(l, nb, 1);
  for (int i = 0; i < l; ++i) na[i] = mul(na[i], nb[i]);
  FFT(l, na, -1);
  na.resize(m);
  return na;
}
VI Add(const VI &a, const VI &b) {
  VI c;
  c.resize(max(a.size(), b.size()));
  for (int i = 0; i < c.size(); ++i) {
    c[i] = 0;
    if (i < a.size()) c[i] += a[i];
    if (i < b.size()) c[i] += b[i];
    chk(c[i]);
  }
  return c;
}
PVV merge(int l, int r, VVI &tmp) {
  if (l == r) return PVV(tmp[l], tmp[l]);
  int mid = l + r >> 1;
  PVV L = merge(l, mid, tmp);
  PVV R = merge(mid + 1, r, tmp);
  return PVV(Mul(L.first, R.first), Add(L.second, Mul(L.first, R.second)));
}
void dfs1(int u) {
  for (int v = u; v; v = ch[v][0]) {
    if (ch[v][1]) dfs1(ch[v][1]);
  }
  VVI tmp;
  if (u ^ 1) tmp.push_back(VI{0, 1});
  for (int v = u; v; v = ch[v][0]) {
    if (ch[v][1])
      tmp.push_back(vet[ch[v][1]]);
    else
      tmp.push_back(VI{0, 1});
  }
  vet[u] = merge(0, tmp.size() - 1, tmp).second;
}
int main() {
  int n;
  lol x;
  rd(n), rd(x);
  x %= mod;
  int u, v;
  for (int i = 1; i < n; ++i)
    rd(u), rd(v), G[u].push_back(v), G[v].push_back(u);
  dfs0(1, 0);
  dfs1(1);
  int ans = 0, res = 1;
  for (int i = 1; i <= n; ++i) {
    chk(ans += mul(vet[1][i], res));
    res = mul(mul(res, x + i), Pow(i, mod - 2));
  }
  cout << ans;
  return 0;
}