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 N = 1e5 + 5, M = (1 << 17) + 5, mo = 998244353;
int n, x, y, ans;
long long s;
int hv[N], fa[N], si[N], d[N], su[N], ds;
vector<int> e[N];
vector<int> a[N], b[N];
int ksm(int x, int y) {
  int t = 1;
  for (; y; y >>= 1, x = (long long)x * x % mo)
    if (y & 1) t = (long long)t * x % mo;
  return t;
}
namespace NTT {
int w[M], h[M], Q;
void print(vector<int> &a) {
  for (int i = 0, _e = a.size(); i < _e; ++i) printf("%d ", (a[i] + mo) % mo);
  printf("\n");
}
void init(int n) {
  for (Q = 1; Q <= n; Q <<= 1)
    ;
  for (int i = 1; i < Q; i <<= 1) {
    int g = ksm(3, (mo - 1) / (i + i));
    w[i] = 1;
    for (int j = 1, _e = i; j < _e; ++j)
      w[i + j] = (long long)w[i + j - 1] * g % mo;
  }
}
void pre(int n) {
  for (Q = 1; Q <= n; Q <<= 1)
    ;
  for (int i = 1, _e = Q; i < _e; ++i)
    h[i] = (h[i >> 1] >> 1) | (i & 1 ? Q >> 1 : 0);
}
void dft(vector<int> &a, int sgn) {
  a.resize(Q);
  for (int i = 1, _e = Q; i < _e; ++i)
    if (h[i] > i) swap(a[i], a[h[i]]);
  long long A;
  for (int i = 1; i < Q; i <<= 1)
    for (int j = 0; j < Q; j += i * 2)
      for (int k = 0, _e = i; k < _e; ++k)
        A = (long long)w[i + k] * a[i + j + k],
        a[i + j + k] = (-A + a[j + k]) % mo, a[j + k] = (A + a[j + k]) % mo;
  if (sgn) {
    reverse(a.begin() + 1, a.end());
    int y = ksm(Q, mo - 2);
    for (int i = 0, _e = Q; i < _e; ++i) a[i] = (long long)a[i] * y % mo;
  }
}
vector<int> operator*(const vector<int> &a, const vector<int> &b) {
  static vector<int> ntta, nttb;
  ntta = a;
  nttb = b;
  int n = (int)ntta.size() + nttb.size() - 2;
  pre(n);
  dft(ntta, 0);
  dft(nttb, 0);
  for (int i = 0, _e = Q; i < _e; ++i)
    ntta[i] = (long long)ntta[i] * nttb[i] % mo;
  dft(ntta, 1);
  ntta.resize(n + 1);
  return ntta;
}
vector<int> operator+(const vector<int> &a, const vector<int> &b) {
  static vector<int> c;
  c = a;
  c.resize(max(a.size(), b.size()));
  for (int i = 0, _e = b.size(); i < _e; ++i) c[i] = (c[i] + b[i]) % mo;
  return c;
}
}  // namespace NTT
using namespace NTT;
void dfs(int x) {
  si[x] = 1;
  for (int i : e[x])
    if (i != fa[x]) {
      fa[i] = x;
      dfs(i);
      si[x] += si[i];
      if (si[i] > si[hv[x]]) hv[x] = i;
    }
}
int find(int l, int r) {
  int ans = l, len = su[r] + su[l - 1] >> 1;
  for (int L = l, R = r, mid; mid = L + R >> 1, L <= R;)
    if (su[mid] <= len)
      ans = mid, L = mid + 1;
    else
      R = mid - 1;
  if (su[r] - su[ans + 1] > su[ans] - su[l - 1]) ++ans;
  return ans;
}
void divide(int l, int r) {
  if (l == r) return;
  int m = find(l, r);
  divide(l, m);
  divide(m + 1, r);
  a[d[l]] = a[d[l]] * a[d[m + 1]];
  a[d[m + 1]].clear();
}
void divide2(int l, int r) {
  if (l == r) return;
  int m = find(l, r);
  divide2(l, m);
  divide2(m + 1, r);
  b[d[l]] = b[d[l]] + a[d[l]] * b[d[m + 1]];
  a[d[l]] = a[d[l]] * a[d[m + 1]];
  a[d[m + 1]].clear();
  b[d[m + 1]].clear();
}
void dfs2(int x, int st) {
  if (!hv[x]) {
    d[ds = 1] = x;
    a[x].resize(1);
    b[x].resize(2);
    a[x][0] = 0;
    b[x][0] = b[x][1] = 1;
    for (int y = x; y != st;) {
      y = fa[y];
      d[++ds] = y;
      b[y].resize(1);
      b[y][0] = 1;
    }
    reverse(d + 1, d + ds + 1);
    d[ds + 1] = 0;
    for (int i = 1, _e = ds; i <= _e; ++i) su[i] = si[st] - si[d[i + 1]];
    divide2(1, ds);
    a[st] = b[st];
    return;
  }
  for (int i : e[x])
    if (i != fa[x] && i != hv[x]) dfs2(i, i);
  a[x].resize(2);
  a[x][1] = 1;
  d[ds = 1] = x;
  su[1] = 1;
  for (int i : e[x])
    if (i != fa[x] && i != hv[x]) d[++ds] = i, su[ds] = su[ds - 1] + si[i];
  divide(1, ds);
  dfs2(hv[x], st);
}
int main() {
  scanf("%d%lld", &n, &s);
  s %= mo;
  for (int i = 2, _e = n; i <= _e; ++i)
    scanf("%d%d", &x, &y), e[x].push_back(y), e[y].push_back(x);
  init(n);
  dfs(1);
  dfs2(1, 1);
  int c = 1;
  for (int i = 1, _e = n; i <= _e; ++i) {
    ans = ((long long)c * a[1][i] + ans) % mo;
    c = (long long)c * (s + i) % mo * ksm(i, mo - 2) % mo;
  }
  printf("%d\n", (ans + mo) % mo);
}