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;
int fpow(int a, int b) {
  int ans = 1, t = a;
  while (b) {
    if (b & 1) ans = 1ll * ans * t % Mod;
    t = 1ll * t * t % Mod;
    b >>= 1;
  }
  return ans;
}
int rev[400010];
void getrev(int bit) {
  for (int i = 0; i < (1 << bit); i++)
    rev[i] = (rev[i >> 1] >> 1) | ((i & 1) << (bit - 1));
  return;
}
void ntt(int* a, int n, int dft) {
  for (int i = 0; i < n; i++)
    if (i < rev[i]) swap(a[i], a[rev[i]]);
  for (int step = 1; step < n; step <<= 1) {
    int wn = fpow(3, (Mod - 1) / (step << 1));
    if (dft == -1) wn = fpow(wn, Mod - 2);
    for (int i = 0; i < n; i += step << 1) {
      int wnk = 1;
      for (int j = i; j < i + step; j++) {
        int x = a[j], y = 1ll * a[j + step] * wnk % Mod;
        a[j] = (x + y) % Mod;
        a[j + step] = (x - y + Mod) % Mod;
        wnk = 1ll * wnk * wn % Mod;
      }
    }
  }
  if (dft == -1) {
    int invn = fpow(n, Mod - 2);
    for (int i = 0; i < n; i++) a[i] = 1ll * a[i] * invn % Mod;
  }
  return;
}
int a[400010];
int b[400010];
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] = (A[i] + B[i]) % Mod;
  return A;
}
vector<int> One() {
  vector<int> ans;
  ans.push_back(1);
  return ans;
}
vector<int> X() {
  vector<int> ans;
  ans.push_back(0);
  ans.push_back(1);
  return ans;
}
vector<int> mulx(vector<int> A) {
  vector<int> ans;
  ans.push_back(0);
  for (int i = 0; i < A.size(); i++) ans.push_back(A[i]);
  return ans;
}
vector<int> mul(vector<int> A, vector<int> B) {
  int len = A.size() + B.size() - 1;
  int s = 1, bit = 0;
  while (s < len) s <<= 1, bit++;
  getrev(bit);
  for (int i = 0; i < s; i++) {
    if (i < A.size())
      a[i] = A[i];
    else
      a[i] = 0;
    if (i < B.size())
      b[i] = B[i];
    else
      b[i] = 0;
  }
  ntt(a, s, 1);
  ntt(b, s, 1);
  for (int i = 0; i < s; i++) a[i] = 1ll * a[i] * b[i] % Mod;
  ntt(a, s, -1);
  vector<int> ans;
  for (int i = 0; i < len; i++) ans.push_back(a[i]);
  return ans;
}
vector<int> p[100010];
pair<vector<int>, vector<int> > solve(int l, int r) {
  if (l == r) return make_pair(p[l], p[l]);
  int mid = (l + r) >> 1;
  pair<vector<int>, vector<int> > L = solve(l, mid);
  pair<vector<int>, vector<int> > R = solve(mid + 1, r);
  vector<int> ans1 = mul(L.first, R.first);
  vector<int> ans2 = add(mul(L.second, R.first), R.second);
  return make_pair(ans1, ans2);
}
vector<int> calc(vector<vector<int> >& vec) {
  int n = vec.size();
  for (int i = 0; i < n; i++) p[i] = vec[i];
  vector<int> ans = solve(0, n - 1).second;
  ans[0] = (ans[0] + 1) % Mod;
  return ans;
}
vector<vector<int> > V[100010];
int ch[100010][2], cnt[100010];
int id[100010], siz[100010];
vector<int> calc(int u) {
  vector<int> ans = calc(V[id[u]]);
  return ans;
}
struct Edge {
  int v, nxt;
} e[200010];
int tot;
int first[100010];
void build(int u, int v) {
  e[++tot] = (Edge){v, first[u]};
  first[u] = tot;
  return;
}
void dfs(int u, int lst) {
  siz[u] = 1;
  for (int i = first[u]; i; i = e[i].nxt) {
    int v = e[i].v;
    if (v == lst) continue;
    dfs(v, u);
    ch[u][cnt[u]++] = v;
    siz[u] += siz[v];
  }
  return;
}
void solve(int u) {
  if (!cnt[u]) {
    id[u] = u;
    V[u].push_back(X());
    return;
  }
  if (cnt[u] == 1) {
    int v = ch[u][0];
    solve(v);
    id[u] = id[v];
    V[id[u]].push_back(X());
    return;
  }
  int x = ch[u][0];
  int y = ch[u][1];
  solve(x);
  solve(y);
  if (siz[x] < siz[y]) swap(x, y);
  id[u] = id[x];
  V[id[u]].push_back(mulx(calc(y)));
  return;
}
int main() {
  int n;
  long long x;
  scanf("%d %lld", &n, &x);
  for (int i = 1; i < n; i++) {
    int u, v;
    scanf("%d %d", &u, &v);
    build(u, v);
    build(v, u);
  }
  dfs(1, 0);
  solve(1);
  vector<int> res = calc(1);
  int ans = 0, cur = 1;
  for (int i = 1; i < res.size(); i++) {
    ans = (ans + 1ll * cur * res[i]) % Mod;
    cur = (x + i) % Mod * cur % Mod * fpow(i, Mod - 2) % Mod;
  }
  printf("%d\n", ans);
  return 0;
}