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 + 10, mod = 998244353, G = 3;
void add(int& x, int y) {
  x += y;
  if (x >= mod) {
    x -= mod;
  }
}
void sub(int& x, int y) {
  x -= y;
  if (x < 0) {
    x += mod;
  }
}
int mul(int x, int y) { return (long long)x * y % mod; }
int qpow(int v, int p) {
  int result = 1;
  for (; p; p >>= 1, v = mul(v, v)) {
    if (p & 1) {
      result = mul(result, v);
    }
  }
  return result;
}
int n, size[N], heavy[N], pa[N], poly_a[N << 1], poly_b[N << 1], rev[N << 1],
    len;
long long x;
void ntt(int* c, int n, int type) {
  for (int i = 0; i < n; ++i) {
    if (i < rev[i]) {
      swap(c[i], c[rev[i]]);
    }
  }
  for (int i = 1; i < n; i <<= 1) {
    int x = qpow(
        G, type == 1 ? (mod - 1) / (i << 1) : mod - 1 - (mod - 1) / (i << 1));
    for (int j = 0; j < n; j += i << 1) {
      int y = 1;
      for (int k = 0; k < i; ++k, y = mul(y, x)) {
        int p = c[j + k], q = mul(y, c[i + j + k]);
        c[j + k] = (p + q) % mod;
        c[i + j + k] = (p - q + mod) % mod;
      }
    }
  }
  if (type == -1) {
    int inv = qpow(n, mod - 2);
    for (int i = 0; i < n; ++i) {
      c[i] = mul(c[i], inv);
    }
  }
}
vector<int> pmul(vector<int>& a, vector<int>& b) {
  int x = a.size() - 1;
  int y = b.size() - 1;
  for (len = 0; (1 << len) <= x + y; ++len)
    ;
  int n = 1 << len;
  for (int i = 0; i < n; ++i) {
    rev[i] = (rev[i >> 1] >> 1) | ((i & 1) << len - 1);
  }
  for (int i = 0; i < n; ++i) {
    poly_a[i] = poly_b[i] = 0;
    if (i <= x) {
      poly_a[i] = a[i];
    }
    if (i <= y) {
      poly_b[i] = b[i];
    }
  }
  ntt(poly_a, n, 1);
  ntt(poly_b, n, 1);
  for (int i = 0; i < n; ++i) {
    poly_a[i] = mul(poly_a[i], poly_b[i]);
  }
  ntt(poly_a, n, -1);
  vector<int> newpoly;
  for (int i = 0; i <= x + y; ++i) {
    newpoly.push_back(poly_a[i]);
  }
  return newpoly;
}
vector<int> padd(vector<int>& a, vector<int>& b) {
  vector<int> newpoly;
  for (int i = 0; i < max(a.size(), b.size()); ++i) {
    newpoly.push_back(((i < a.size() ? a[i] : 0) + (i < b.size() ? b[i] : 0)) %
                      mod);
  }
  return newpoly;
}
vector<int> poly[N], nodes, graph[N];
pair<vector<int>, vector<int>> solve(int l, int r) {
  if (l == r) {
    int u = nodes[l];
    return make_pair(poly[u], poly[u]);
  } else {
    int mid = l + r >> 1;
    pair<vector<int>, vector<int>> pl = solve(l, mid);
    pair<vector<int>, vector<int>> pr = solve(mid + 1, r);
    vector<int> diff = pmul(pl.first, pr.second);
    return make_pair(pmul(pl.first, pr.first), padd(pl.second, diff));
  }
}
void dfs1(int u, int pa) {
  size[u] = 1;
  for (auto v : graph[u]) {
    if (v != pa) {
      ::pa[v] = u;
      dfs1(v, u);
      size[u] += size[v];
      if (size[v] > size[heavy[u]]) {
        heavy[u] = v;
      }
    }
  }
}
void dfs2(int u, int t) {
  for (auto v : graph[u]) {
    if (v != pa[u] && v != heavy[u]) {
      dfs2(v, v);
    }
  }
  if (heavy[u]) {
    dfs2(heavy[u], t);
  }
  poly[u] = {0, 1};
  if (u == t) {
    nodes.clear();
    for (int x = u; x; x = heavy[x]) {
      for (auto v : graph[x]) {
        if (v != pa[x] && v != heavy[x]) {
          poly[x] = pmul(poly[x], poly[v]);
        }
      }
      nodes.push_back(x);
    }
    poly[u] = solve(0, nodes.size() - 1).second;
    ++poly[u][0];
  }
}
int main() {
  scanf("%d%I64d", &n, &x);
  for (int i = 1; i < n; ++i) {
    int x, y;
    scanf("%d%d", &x, &y);
    graph[x].push_back(y);
    graph[y].push_back(x);
  }
  dfs1(1, 0);
  dfs2(1, 1);
  int px = x % mod, binom = 1, answer = 0;
  for (int i = 1; i <= n; ++i) {
    add(answer, mul(poly[1][i], binom));
    binom = mul(mul(binom, qpow(i, mod - 2)), (px + i) % mod);
  }
  printf("%d\n", answer);
  return 0;
}