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 inverse(int a, int md) {
  return a == 1 ? a : (long long)(md - md / a) * inverse(md % a, md) % md;
}
namespace ntt {
int fast_pow(int x, int y, int z) {
  long long ret = 1;
  for (; y; y >>= 1, x = (long long)x * x % z) {
    if (y & 1) ret = ret * x % z;
  }
  return ret;
}
int revv(int x, int bits) {
  int ret = 0;
  for (int i = 0; i < bits; i++) {
    ret <<= 1, ret |= x & 1, x >>= 1;
  }
  return ret;
}
void ntt(vector<int> &a, bool rev, int mod, int root) {
  int n = a.size(), bits = 32 - __builtin_clz(n) - 1;
  for (int i = 0; i < n; i++) {
    int j = revv(i, bits);
    if (i < j) swap(a[i], a[j]);
  }
  for (int k = 1; k < n; k <<= 1) {
    int e = fast_pow(root, (mod - 1) / 2 / k, mod);
    if (rev) e = fast_pow(e, mod - 2, mod);
    for (int i = 0; i < n; i += 2 * k) {
      long long w = 1;
      for (int j = 0; j < k; j++, w = w * e % mod) {
        int x = a[i + j], y = w * a[i + j + k] % mod;
        a[i + j] = (x + y) % mod, a[i + j + k] = (x - y + mod) % mod;
      }
    }
  }
  if (rev) {
    int inv = fast_pow(n, mod - 2, mod);
    for (int i = 0; i < n; i++) a[i] = (long long)a[i] * inv % mod;
  }
}
vector<int> convolution(const vector<int> &a, const vector<int> &b,
                        int mod = (119 << 23) + 1, int root = 3) {
  int sz = (int)a.size() + (int)b.size() - 1;
  int L = sz > 1 ? 32 - __builtin_clz(sz - 1) : 0, n = 1 << L;
  vector<int> av(n), bv(n);
  copy(a.begin(), a.end(), av.begin());
  copy(b.begin(), b.end(), bv.begin());
  ntt(av, false, mod, root), ntt(bv, false, mod, root);
  for (int i = 0; i < n; i++) {
    av[i] = (long long)av[i] * bv[i] % mod;
  }
  ntt(av, true, mod, root);
  return av;
}
}  // namespace ntt
vector<int> operator*(const vector<int> &a, const vector<int> &b) {
  auto ret = ntt::convolution(a, b);
  ret.resize(a.size() + b.size() - 1);
  return ret;
}
vector<int> operator+(vector<int> a, vector<int> b) {
  if (a.size() > b.size()) swap(a, b);
  for (int i = 0; i < a.size(); i++) {
    (b[i] += a[i]) %= mod;
  }
  return b;
}
vector<int> operator-(vector<int> a, vector<int> b) {
  if (a.size() > b.size()) swap(a, b);
  for (int i = 0; i < a.size(); i++) {
    b[i] = (b[i] - a[i] + mod) % mod;
  }
  return b;
}
const int N = 100005;
vector<int> g[N];
int fa[N], son[N], sz[N];
void dfs1(int u, int f) {
  fa[u] = f;
  sz[u] = 1;
  for (auto v : g[u]) {
    if (v != f) {
      dfs1(v, u);
      if (sz[v] > sz[son[u]]) son[u] = v;
      sz[u] += sz[v];
    }
  }
}
vector<int> ans[N];
pair<vector<int>, vector<int>> dc(
    vector<pair<vector<int>, vector<int>>> polys) {
  if (polys.size() == 1) return polys[0];
  int m = polys.size() / 2;
  auto l = dc({polys.begin(), polys.begin() + m});
  auto r = dc({polys.begin() + m, polys.end()});
  return {l.first * r.first, l.second + l.first * r.second};
}
void dfs2(int u) {
  vector<pair<vector<int>, vector<int>>> polys;
  for (int p = u; p; p = son[p]) {
    vector<int> poly = {0, 1};
    for (auto v : g[p]) {
      if (v != fa[p] && v != son[p]) dfs2(v), poly = poly + poly * ans[v];
    }
    polys.emplace_back(poly, poly);
  }
  ans[u] = dc(polys).second;
}
int main(int argc, char *argv[]) {
  std::ios_base::sync_with_stdio(false);
  int n;
  long long X;
  cin >> n >> X;
  for (int i = 0; i < n - 1; i++) {
    int u, v;
    cin >> u >> v;
    g[v].push_back(u);
    g[u].push_back(v);
  }
  dfs1(1, 0);
  dfs2(1);
  long long as = 0, x = 1, y = 1;
  for (int i = 1; i < ans[1].size(); i++) {
    if (i > 1) {
      x = x * (X % mod + i - 1) % mod;
      y = y * (i - 1) % mod;
    }
    long long v = x * inverse(y, mod) % mod;
    (as += v * ans[1][i]) %= mod;
  }
  cout << as << endl;
  return 0;
}