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;
inline long long rd() {
  long long x = 0, w = 1;
  char c = getchar();
  while (!isdigit(c) && c != '-') c = getchar();
  if (c == '-') c = getchar(), w = -1;
  while (isdigit(c)) x = x * 10 + c - 48, c = getchar();
  return x * w;
}
const int N = 300010;
const int P = 998244353;
int r[N], w[N];
inline int pw(int a, int b) {
  int r = 1;
  for (; b; b >>= 1, a = 1ll * a * a % P)
    if (b & 1) r = 1ll * r * a % P;
  return r;
}
inline void ntt(int n, int* a, int f) {
  int l = 1;
  while ((1 << l) < n) l++;
  for (int i = (1); i < (n); ++i) r[i] = r[i >> 1] >> 1 | (i & 1) << (l - 1);
  for (int i = (0); i < (n); ++i)
    if (i < r[i]) swap(a[i], a[r[i]]);
  for (int i = 2; i <= n; i <<= 1) {
    int wn = pw(3, f == 1 ? (P - 1) / i : P - 1 - (P - 1) / i);
    w[0] = 1;
    for (int j = (1); j < ((i >> 1)); ++j) w[j] = 1ll * w[j - 1] * wn % P;
    for (int j = 0; j < n; j += i) {
      int *x = a + j, *y = a + j + (i >> 1);
      for (int k = (0); k < ((i >> 1)); ++k) {
        int v = 1ll * y[k] * w[k] % P;
        y[k] = (x[k] + P - v) % P;
        x[k] = (x[k] + v) % P;
      }
    }
  }
  if (f == -1) {
    int iv = pw(n, P - 2);
    for (int i = (0); i < (n); ++i) a[i] = 1ll * a[i] * iv % P;
  }
}
inline vector<int> operator+(const vector<int>& a, const vector<int>& b) {
  vector<int> c = a;
  c.resize(max(a.size(), b.size()));
  for (int i = 0; i < (b).size(); ++i) c[i] = (c[i] + b[i]) % P;
  return c;
}
int t1[N], t2[N];
inline vector<int> operator*(vector<int> a, vector<int> b) {
  int na = a.size(), nb = b.size(), nc = na + nb - 1;
  int nn = 1;
  while (nn < nc) nn <<= 1;
  for (int i = (0); i < (nn); ++i) t1[i] = t2[i] = 0;
  for (int i = 0; i < (a).size(); ++i) t1[i] = a[i];
  for (int i = 0; i < (b).size(); ++i) t2[i] = b[i];
  ntt(nn, t1, 1);
  ntt(nn, t2, 1);
  for (int i = (0); i < (nn); ++i) t1[i] = 1ll * t1[i] * t2[i] % P;
  ntt(nn, t1, -1);
  vector<int> c;
  c.resize(nc);
  for (int i = 0; i < (c).size(); ++i) c[i] = t1[i];
  return c;
}
int n, fa[N], sz[N], hs[N];
long long m;
vector<int> G[N], a[N], p[N];
void dfs(int x, int p) {
  fa[x] = p;
  sz[x] = 1;
  hs[x] = 0;
  for (int y : G[x])
    if (y != p) {
      dfs(y, x);
      sz[x] += sz[y];
      if (sz[y] > sz[hs[x]]) hs[x] = y;
    }
}
void sol(int l, int r, vector<int>& f, vector<int>& g) {
  if (l == r) {
    f = g = a[l];
    return;
  }
  int m = l + r >> 1;
  vector<int> fl, fr, gl, gr;
  sol(l, m, fl, gl);
  sol(m + 1, r, fr, gr);
  f = fl * fr;
  g = (fl * gr) + gl;
}
vector<int> dfs2(int x) {
  for (int t = x; t; t = hs[t]) {
    p[t].clear();
    p[t].push_back(1);
    for (int y : G[t])
      if (y != fa[t] && y != hs[t]) p[t] = p[t] * dfs2(y);
    p[t].resize(p[t].size() + 1);
    for (int i = p[t].size() - 1; i; i--) p[t][i] = p[t][i - 1];
    p[t][0] = 0;
  }
  int nn = 0;
  for (int t = x; t; t = hs[t]) a[++nn] = p[t];
  vector<int> f, g;
  sol(1, nn, f, g);
  g[0]++;
  return g;
}
int main() {
  n = rd();
  m = rd() % P;
  for (int i = (1); i < (n); ++i) {
    int u = rd(), v = rd();
    G[u].push_back(v);
    G[v].push_back(u);
  }
  dfs(1, 0);
  vector<int> res = dfs2(1);
  int c = 1, ans = 0;
  res[0] = (res[0] + P - 1) % P;
  for (int i = 1; i < res.size(); i++) {
    ans = (ans + 1ll * c * res[i]) % P;
    c = 1ll * c * (m + i) % P * pw(i, P - 2) % P;
  }
  printf("%d\n", ans);
  return 0;
}