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, G = 3;
int n, m, Ans, now = 1, size[300010], son[300010], w[300010], fa[300010],
               R[300010], wn[2][20];
vector<int> e[300010], h[300010], t[300010];
inline int add(int x, int y) { return (x += y) >= mod ? x - mod : x; }
inline int sub(int x, int y) { return (x -= y) < 0 ? x + mod : x; }
inline int mul(int x, int y) { return 1LL * x * y % mod; }
inline int pow(int x, int y) {
  int ret = 1;
  while (y) {
    if (y & 1) ret = mul(ret, x);
    y >>= 1;
    x = mul(x, x);
  }
  return ret;
}
inline long long read() {
  long long x = 0, f = 1;
  char ch = getchar();
  while (ch > '9' || ch < '0') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = x * 10 + ch - '0';
    ch = getchar();
  }
  return x * f;
}
inline void Init() {
  wn[0][18] = pow(G, (mod - 1) / (1 << 18));
  wn[1][18] = pow(wn[0][18], mod - 2);
  for (int k = 17; k >= 0; --k) {
    wn[0][k] = mul(wn[0][k + 1], wn[0][k + 1]);
    wn[1][k] = mul(wn[1][k + 1], wn[1][k + 1]);
  }
  w[0] = 1;
}
inline void NTT(int *a, int H, int f = 0) {
  int L = (1 << H);
  for (int i = 0; i < L; ++i)
    if (i < R[i]) swap(a[i], a[R[i]]);
  for (int e = 1; e <= H; ++e) {
    int len = (1 << e), l = len >> 1;
    for (int i = 1; i < l; ++i) w[i] = mul(w[i - 1], wn[f][e]);
    for (int st = 0; st < L; st += len)
      for (int k = 0; k < l; ++k) {
        int x = a[st + k], y = mul(w[k], a[st + k + l]);
        a[st + k] = add(x, y);
        a[st + k + l] = sub(x, y);
      }
  }
  if (f)
    for (int i = 0; i < L; ++i) a[i] = mul(a[i], pow(L, mod - 2));
}
inline vector<int> Mul(vector<int> a, vector<int> b) {
  if (mul(a.size(), b.size()) <= 5000) {
    vector<int> ret;
    ret.resize(a.size() + b.size() - 1);
    for (int i = 0; i < a.size(); ++i)
      for (int j = 0; j < b.size(); ++j)
        ret[i + j] = add(ret[i + j], mul(a[i], b[j]));
    return ret;
  }
  int L = 1, H = 0;
  while (L <= a.size() + b.size() - 1) L <<= 1, ++H;
  for (int i = 0; i < L; ++i) R[i] = (R[i >> 1] >> 1) | ((i & 1) << (H - 1));
  static int f[300010], g[300010];
  for (int i = 0; i < a.size(); ++i) f[i] = a[i];
  for (int i = 0; i < b.size(); ++i) g[i] = b[i];
  for (int i = a.size(); i < L; ++i) f[i] = 0;
  for (int i = b.size(); i < L; ++i) g[i] = 0;
  NTT(f, H);
  NTT(g, H);
  for (int i = 0; i < L; ++i) f[i] = mul(f[i], g[i]);
  NTT(f, H, 1);
  vector<int> ret;
  for (int i = 0; i < a.size() + b.size(); ++i) ret.push_back(f[i]);
  return ret;
}
inline vector<int> Add(vector<int> a, vector<int> b) {
  if (a.size() < b.size()) swap(a, b);
  for (int i = 0; i < b.size(); ++i) a[i] = add(a[i], b[i]);
  return a;
}
inline void solve(int l, int r, vector<int> &f, vector<int> &g) {
  if (l == r) {
    f = g = h[l];
    return;
  }
  int mid = (l + r) >> 1;
  vector<int> fl, fr, gl, gr;
  solve(l, mid, fl, gl);
  solve(mid + 1, r, fr, gr);
  f = Mul(fl, fr);
  g = Add(Mul(gr, fl), gl);
}
inline void dfs(int x, int anc) {
  fa[x] = anc;
  size[x] = 1;
  for (int i = 0; i < e[x].size(); ++i)
    if (e[x][i] != anc) {
      dfs(e[x][i], x);
      size[x] += size[e[x][i]];
      if (size[e[x][i]] > size[son[x]]) son[x] = e[x][i];
    }
}
inline vector<int> dfs(int u) {
  for (int x = u; x; x = son[x]) {
    t[x].clear();
    for (int i = 0; i < e[x].size(); ++i)
      if (e[x][i] != fa[x] && e[x][i] != son[x]) t[x] = dfs(e[x][i]);
    if (t[x].size() < 1) t[x].resize(1);
    t[x][0]++;
    t[x].insert(t[x].begin(), 0);
  }
  int len = 0;
  vector<int> f, g;
  for (int x = u; x; x = son[x]) h[++len] = t[x];
  solve(1, len, f, g);
  return g;
}
int main() {
  n = read();
  m = read() % mod;
  Init();
  for (int i = 1; i < n; ++i) {
    int x = read(), y = read();
    e[x].push_back(y);
    e[y].push_back(x);
  }
  dfs(1, 0);
  vector<int> ret = dfs(1);
  for (int i = 1; i < ret.size(); ++i) {
    Ans = add(Ans, mul(ret[i], now));
    now = mul(now, mul(m + i, pow(i, mod - 2)));
  }
  printf("%d\n", Ans);
  return 0;
}