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;
void read(int &x) {
  x = 0;
  int f = 1;
  char ch = getchar();
  for (; !isdigit(ch); ch = getchar())
    if (ch == '-') f = -f;
  for (; isdigit(ch); ch = getchar()) x = x * 10 + ch - '0';
  x *= f;
}
void print(int x) {
  if (x < 0) putchar('-'), x = -x;
  if (!x) return;
  print(x / 10), putchar(x % 10 + 48);
}
void write(int x) {
  if (!x)
    putchar('0');
  else
    print(x);
  putchar('\n');
}
const int maxn = 1 << 19 | 10;
const int inf = 1e9;
const double eps = 1e-8;
const int mod = 998244353;
int add(int x, int y) { return x + y >= mod ? x + y - mod : x + y; }
int del(int x, int y) { return x - y < 0 ? x - y + mod : x - y; }
int mul(int x, int y) { return 1ll * x * y - 1ll * x * y / mod * mod; }
int qpow(int a, int x) {
  int res = 1;
  for (; x; x >>= 1, a = mul(a, a))
    if (x & 1) res = mul(res, a);
  return res;
}
namespace poly {
int N, w[maxn], pos[maxn], bit, mxn, t[2][maxn];
void init(int l) {
  for (mxn = 1; mxn <= l; mxn <<= 1)
    ;
  w[0] = 1, w[1] = qpow(3, (mod - 1) / mxn);
  for (int i = 2; i <= mxn; i++) w[i] = mul(w[i - 1], w[1]);
}
void ntt(int *r, int op) {
  for (int i = 1, i_r = N - 1; i <= i_r; i++)
    if (pos[i] > i) swap(r[pos[i]], r[i]);
  for (int i = 1, d = mxn >> 1; i < N; i <<= 1, d >>= 1)
    for (int j = 0; j < N; j += i << 1)
      for (int k = 0; k < i; k++) {
        int x = r[j + k], y = mul(r[i + j + k], w[k * d]);
        r[j + k] = add(x, y), r[i + j + k] = del(x, y);
      }
  if (op == -1) {
    reverse(r + 1, r + N);
    int d = qpow(N, mod - 2);
    for (int i = 0; i < N; i++) r[i] = mul(r[i], d);
  }
}
vector<int> pmul(vector<int> a, vector<int> b) {
  if (1ll * ((int)a.size()) * ((int)b.size()) <= 5000) {
    vector<int> c;
    c.resize(((int)a.size()) + ((int)b.size()) - 1);
    for (int i = 0, i_r = ((int)a.size()) - 1; i <= i_r; i++)
      for (int j = 0, j_r = ((int)b.size()) - 1; j <= j_r; j++)
        c[i + j] = add(c[i + j], mul(a[i], b[j]));
    return c;
  }
  for (N = 1, bit = 0; N < ((int)a.size()) + ((int)b.size()); N <<= 1, bit++)
    ;
  for (int i = 0, i_r = N - 1; i <= i_r; i++)
    pos[i] = pos[i >> 1] >> 1 | ((i & 1) << (bit - 1));
  for (int i = 0, i_r = ((int)a.size()) - 1; i <= i_r; i++) t[0][i] = a[i];
  for (int i = ((int)a.size()), i_r = N; i <= i_r; i++) t[0][i] = 0;
  for (int i = 0, i_r = ((int)b.size()) - 1; i <= i_r; i++) t[1][i] = b[i];
  for (int i = ((int)b.size()), i_r = N; i <= i_r; i++) t[1][i] = 0;
  ntt(t[0], 1), ntt(t[1], 1);
  for (int i = 0, i_r = N - 1; i <= i_r; i++) t[0][i] = mul(t[0][i], t[1][i]);
  ntt(t[0], -1);
  vector<int> c;
  for (int i = 0, i_r = ((int)a.size()) + ((int)b.size()) - 1; i <= i_r; i++)
    c.push_back(t[0][i]);
  return c;
}
vector<int> padd(vector<int> a, vector<int> b) {
  if (((int)a.size()) > ((int)b.size())) {
    for (int i = 0, i_r = ((int)b.size()) - 1; i <= i_r; i++)
      a[i] = add(a[i], b[i]);
    return a;
  }
  for (int i = 0, i_r = ((int)a.size()) - 1; i <= i_r; i++)
    b[i] = add(a[i], b[i]);
  return b;
}
}  // namespace poly
long long k;
int n, ch[maxn], head[maxn], tot, sz[maxn], F[maxn], cnt;
struct edge {
  int to, nxt;
} e[maxn << 1];
vector<int> f[maxn], r[maxn];
void ins(int u, int v) { e[++tot] = (edge){v, head[u]}, head[u] = tot; }
void dfs(int x, int fa) {
  sz[x] = 1;
  F[x] = fa;
  for (int i = head[x], v; i; i = e[i].nxt)
    if ((v = e[i].to) != fa) {
      dfs(v, x);
      sz[x] += sz[v];
      if (sz[ch[x]] < sz[v]) ch[x] = v;
    }
}
void solve(int lt, int rt, vector<int> &a, vector<int> &b) {
  if (lt == rt) return a = b = r[lt], void();
  vector<int> al, ar, bl, br;
  int mid = (lt + rt) >> 1;
  solve(lt, mid, al, bl), solve(mid + 1, rt, ar, br);
  b = poly::pmul(bl, br);
  a = poly::padd(poly::pmul(ar, bl), al);
}
vector<int> dfs2(int x) {
  for (int t = x; t; t = ch[t]) {
    for (int i = head[t]; i; i = e[i].nxt)
      if (e[i].to != F[t] && e[i].to != ch[t]) f[t] = dfs2(e[i].to);
    if (((int)f[t].size()) < 1) f[t].resize(1);
    f[t][0]++;
    f[t].insert(f[t].begin(), 0);
  }
  cnt = 0;
  for (int t = x; t; t = ch[t]) r[++cnt] = f[t];
  vector<int> a, b;
  solve(1, cnt, a, b);
  return a;
}
int main() {
  read(n), scanf("%lld", &k);
  poly::init(n << 1);
  k %= mod;
  for (int i = 1, x, y; i < n; i++) read(x), read(y), ins(x, y), ins(y, x);
  dfs(1, 0);
  vector<int> res = dfs2(1);
  int t = 1, ans = 0;
  for (int i = 1; i < ((int)res.size()); i++) {
    ans = add(ans, mul(res[i], t));
    t = mul(t, mul((k + i) % mod, qpow(i, mod - 2)));
  }
  write(ans);
  return 0;
}