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;
int n, tot, len;
long long val;
int hd[100009], eg[200009], nxt[200009];
int sz[100009], son[100009];
int ch[100009][2];
int rt[2][270009], mp[270009];
vector<vector<int> > v[31];
void ins(int a, int b) {
  eg[++tot] = b;
  nxt[tot] = hd[a];
  hd[a] = tot;
}
int qpow(int a, int b) {
  int ans = 1;
  for (; b; b >>= 1, a = (long long)a * a % 998244353)
    if (b & 1) ans = (long long)ans * a % 998244353;
  return ans;
}
void dfs1(int x, int fa) {
  sz[x] = 1;
  for (int i = hd[x]; i; i = nxt[i])
    if (eg[i] != fa) {
      dfs1(eg[i], x);
      sz[x] += sz[eg[i]];
      if (sz[eg[i]] > sz[son[x]]) son[x] = eg[i];
    }
  ch[x][0] = son[x];
  for (int i = hd[x]; i; i = nxt[i])
    if (eg[i] != fa && eg[i] != son[x]) ch[x][1] = eg[i];
}
void init(int l) {
  int bit = 0;
  while (1 << bit < l) bit++;
  len = 1 << bit;
  rt[0][0] = rt[1][0] = 1;
  rt[0][1] = qpow(3, (998244353 - 1) / len);
  for (int i = 2; i < len; i++)
    rt[0][i] = (long long)rt[0][i - 1] * rt[0][1] % 998244353;
  for (int i = 1; i < len; i++) rt[1][i] = rt[0][len - i];
  for (int i = 1; i < len; i++)
    mp[i] = (mp[i >> 1] >> 1) | ((i & 1) << (bit - 1));
}
void fft(vector<int> &s, int c) {
  for (int i = 0; i < len; i++)
    if (i < mp[i]) swap(s[i], s[mp[i]]);
  for (int l = 2; l <= len; l <<= 1) {
    int sp = len / l, d = l >> 1;
    for (int j = 0; j < len; j += l)
      for (int i = 0; i < d; i++) {
        int t = (long long)rt[c][sp * i] * s[i + j + d] % 998244353;
        s[i + j + d] = (s[i + j] + 998244353 - t) % 998244353;
        s[i + j] = (s[i + j] + t) % 998244353;
      }
  }
  if (c) {
    int inv = qpow(len, 998244353 - 2);
    for (int i = 0; i < len; i++) s[i] = (long long)s[i] * inv % 998244353;
  }
}
vector<int> mul(vector<int> v1, vector<int> v2) {
  int siz = v1.size() + v2.size() - 1;
  init(siz);
  v1.resize(len);
  v2.resize(len);
  fft(v1, 0);
  fft(v2, 0);
  for (int i = 0; i < len; i++) v1[i] = (long long)v1[i] * v2[i] % 998244353;
  fft(v1, 1);
  v1.resize(siz);
  return v1;
}
pair<vector<int>, vector<int> > cal(int l, int r, vector<vector<int> > &vs) {
  if (l == r) {
    vector<int> vp, vq;
    vq = vs[l];
    vp = vs[l];
    vp[0] = (vp[0] + 1) % 998244353;
    return pair<vector<int>, vector<int> >(vp, vq);
  }
  int mid = (l + r) >> 1;
  pair<vector<int>, vector<int> > ls = cal(l, mid, vs),
                                  rs = cal(mid + 1, r, vs);
  vector<int> nq = mul(ls.second, rs.second);
  vector<int> np = ls.first;
  np[0] = (np[0] + 998244353 - 1) % 998244353;
  np = mul(np, rs.second);
  np.resize(max(np.size(), rs.first.size()));
  for (int i = 0; i < (int)rs.first.size(); i++)
    np[i] = (np[i] + rs.first[i]) % 998244353;
  return pair<vector<int>, vector<int> >(np, nq);
}
template <class T>
void clr(vector<T> &x) {
  vector<T> tmp;
  tmp.swap(x);
}
void dfs2(int x, int id) {
  vector<int> vp;
  if (ch[x][0]) dfs2(ch[x][0], id);
  if (ch[x][1]) {
    dfs2(ch[x][1], id + 1);
    vp = cal(0, v[id + 1].size() - 1, v[id + 1]).first;
    clr(v[id + 1]);
    vp.resize(sz[ch[x][1]] + 2);
    for (int i = sz[ch[x][1]] + 1; i >= 1; i--) vp[i] = vp[i - 1];
    vp[0] = 0;
  } else {
    vp.push_back(0);
    vp.push_back(1);
  }
  v[id].push_back(vp);
}
void solve() {
  vector<int> vp = cal(0, v[1].size() - 1, v[1]).first;
  int cb = 1, ans = 0;
  for (int i = 1; i <= n; i++) {
    ans = (ans + (long long)cb * vp[i]) % 998244353;
    int ad = (i + val) % 998244353, inv = i;
    cb = (long long)cb * ad % 998244353 * qpow(inv, 998244353 - 2) % 998244353;
  }
  printf("%d", ans);
}
int main() {
  scanf("%d%I64d", &n, &val);
  for (int i = 1, a, b; i <= n - 1; i++) {
    scanf("%d%d", &a, &b);
    ins(a, b);
    ins(b, a);
  }
  dfs1(1, 0);
  dfs2(1, 1);
  solve();
  return 0;
}