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;
const int MOD = 998244353;
long long w[2][666666];
inline long long qp(long long a, long long b) {
  long long ans = 1;
  while (b) {
    if (b & 1) ans = ans * a % MOD;
    a = a * a % MOD;
    b >>= 1;
  }
  return ans;
}
int K;
inline void fftinit(int n) {
  for (K = 1; K < n; K <<= 1)
    ;
  w[0][0] = w[0][K] = 1;
  long long g = qp(3, (MOD - 1) / K);
  for (int i = 1; i < K; i++) w[0][i] = w[0][i - 1] * g % MOD;
  for (int i = 0; i <= K; i++) w[1][i] = w[0][K - i];
}
inline void fft(int* x, int v) {
  for (int i = 0; i < K; i++) x[i] = (x[i] % MOD + MOD) % MOD;
  for (int i = 0, j = 0; i < K; i++) {
    if (i > j) swap(x[i], x[j]);
    for (int l = K >> 1; (j ^= l) < l; l >>= 1)
      ;
  }
  for (int i = 2; i <= K; i <<= 1)
    for (int l = 0; l < i >> 1; l++) {
      register int W = w[v][K / i * l], *p = x + l + (i >> 1), *q = x + l, t;
      for (register int j = 0; j < K; j += i) {
        p[j] = (q[j] - (t = (long long)p[j] * W % MOD) < 0) ? (q[j] - t + MOD)
                                                            : (q[j] - t);
        q[j] = (q[j] + t - MOD >= 0) ? (q[j] + t - MOD) : (q[j] + t);
      }
    }
  if (!v) return;
  long long rv = qp(K, MOD - 2);
  for (int i = 0; i < K; i++) x[i] = x[i] * rv % MOD;
}
vector<int> operator*(vector<int> a, vector<int> b) {
  if (a.size() && b.size())
    ;
  else
    return vector<int>();
  static int aa[666666], bb[666666];
  fftinit(a.size() + b.size());
  for (int i = 0; i < K; ++i) aa[i] = bb[i] = 0;
  for (int i = 0; i < int(a.size()); ++i) aa[i] = a[i];
  for (int i = 0; i < int(b.size()); ++i) bb[i] = b[i];
  fft(aa, 0);
  fft(bb, 0);
  for (int i = 0; i < K; ++i) aa[i] = (long long)aa[i] * bb[i] % MOD;
  vector<int> v;
  fft(aa, 1);
  for (int i = 0; i < int(a.size()) + int(b.size()) - 1; ++i)
    v.push_back(aa[i]);
  return v;
}
vector<int> operator+(vector<int> a, vector<int> b) {
  vector<int> s(max(a.size(), b.size()));
  for (int i = 0; i < int(a.size()); ++i) (s[i] += a[i]) %= MOD;
  for (int i = 0; i < int(b.size()); ++i) (s[i] += b[i]) %= MOD;
  return s;
}
int n, sz[666666], son[666666], fa[666666];
long long v;
int M = 0, fst[666666], vb[666666], nxt[666666];
void ad_de(int a, int b) {
  ++M;
  nxt[M] = fst[a];
  fst[a] = M;
  vb[M] = b;
}
void adde(int a, int b) {
  ad_de(a, b);
  ad_de(b, a);
}
void dfs(int x, int f = 0) {
  sz[x] = 1;
  son[x] = 0;
  fa[x] = f;
  for (int e = fst[x], b = vb[e]; e; e = nxt[e], b = vb[e])
    if (b != f) {
      dfs(b, x);
      sz[x] += sz[b];
      if (sz[b] > sz[son[x]]) son[x] = b;
    }
}
int vs[666666], vn = 0;
vector<int> ans[666666], tmp[666666];
pair<vector<int>, vector<int> > work(int l, int r) {
  if (l == r) return make_pair(tmp[l], tmp[l]);
  int m = (l + r) >> 1;
  auto L = work(l, m), R = work(m + 1, r);
  return make_pair(L.first * R.first, L.second + L.first * R.second);
}
void dfs2(int x) {
  for (int p = x; p; p = son[p])
    for (int e = fst[p], b = vb[e]; e; e = nxt[e], b = vb[e])
      if (b != fa[p] && b != son[p]) dfs2(b);
  vn = 0;
  for (int p = x; p; p = son[p]) vs[++vn] = p;
  if (x == 1)
    tmp[0] = {1};
  else
    tmp[0] = {0, 1};
  for (int i = 1; i <= vn; ++i) {
    int p = vs[i];
    tmp[i] = {0, 1};
    for (int e = fst[p], b = vb[e]; e; e = nxt[e], b = vb[e])
      if (b != fa[p] && b != son[p]) tmp[i] = ans[b];
  }
  ans[x] = work(0, vn).second;
}
int main() {
  scanf("%d%lld", &n, &v);
  for (int i = 1, a, b; i < n; ++i) scanf("%d%d", &a, &b), adde(a, b);
  dfs(1);
  dfs2(1);
  long long fz = 1, fm = 1, aaa = 0;
  for (int i = 1; i < int(ans[1].size()); ++i) {
    if (i > 1) fz = fz * (v % MOD + i - 1) % MOD, fm = fm * (i - 1) % MOD;
    long long aa = fz * qp(fm, MOD - 2) % MOD;
    aaa += aa * ans[1][i];
    aaa %= MOD;
  }
  aaa = (aaa % MOD + MOD) % MOD;
  cout << aaa << "\n";
}