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;
const int N = 100005;
int power(int x, int y) {
  int ret = 1;
  for (; y; y >>= 1) {
    if (y & 1) ret = 1LL * ret * x % MOD;
    x = 1LL * x * x % MOD;
  }
  return ret;
}
namespace FFT {
const int LN = 23;
const int N = 1 << LN;
const int PRIMITIVE_ROOT = 3;
int root[N];
void init_fft() {
  const int UNITY = power(PRIMITIVE_ROOT, MOD - 1 >> LN);
  root[0] = 1;
  for (int i = 1; i < N; i++) {
    root[i] = 1LL * UNITY * root[i - 1] % MOD;
  }
}
void fft(int n, vector<int> &a, bool invert) {
  for (int i = 1, j = 0; i < n; ++i) {
    int bit = n >> 1;
    for (; j >= bit; bit >>= 1) j -= bit;
    j += bit;
    if (i < j) swap(a[i], a[j]);
  }
  for (int len = 2; len <= n; len <<= 1) {
    int wlen = (invert ? root[N - N / len] : root[N / len]);
    for (int i = 0; i < n; i += len) {
      int w = 1;
      for (int j = 0; j < len >> 1; j++) {
        int u = a[i + j];
        int v = 1LL * a[i + j + len / 2] * w % MOD;
        a[i + j] = (u + v) % MOD;
        a[i + j + len / 2] = (u - v + MOD) % MOD;
        w = 1LL * w * wlen % MOD;
      }
    }
  }
  if (invert) {
    int inv = power(n, MOD - 2);
    for (int i = 0; i < n; i++) a[i] = 1LL * a[i] * inv % MOD;
  }
}
vector<int> multiply(vector<int> a, vector<int> b) {
  int len = (a.size() + b.size() == 2
                 ? 1
                 : 1 << (32 - __builtin_clz(a.size() + b.size() - 2)));
  a.resize(len);
  b.resize(len);
  fft(len, a, false);
  fft(len, b, false);
  a.resize(len);
  for (int i = 0; i < len; ++i) a[i] = 1LL * a[i] * b[i] % MOD;
  fft(len, a, true);
  while (a.back() == 0) a.pop_back();
  return a;
}
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;
}
}  // namespace FFT
int n;
long long x;
vector<int> edges[N];
int sz[N], heavy[N], par[N];
void dfsInit(int u, int p) {
  sz[u] = 1, heavy[u] = -1, par[u] = p;
  for (int v : edges[u]) {
    if (v == p) continue;
    dfsInit(v, u);
    sz[u] += sz[v];
    if (heavy[u] == -1 || sz[v] > sz[heavy[u]]) {
      heavy[u] = v;
    }
  }
}
pair<vector<int>, vector<int>> evaluate(vector<vector<int>> polynoms) {
  if (polynoms.size() == 1) return {polynoms[0], polynoms[0]};
  int sum = 0;
  for (int i = 0; i < polynoms.size(); ++i) sum += polynoms[i].size();
  int mid = 0, summid = 0;
  while (summid * 2 < sum) summid += polynoms[mid++].size();
  if (mid == polynoms.size()) --mid;
  pair<vector<int>, vector<int>> res1 =
      evaluate(vector<vector<int>>(polynoms.begin(), polynoms.begin() + mid));
  pair<vector<int>, vector<int>> res2 =
      evaluate(vector<vector<int>>(polynoms.begin() + mid, polynoms.end()));
  return {FFT::add(FFT::multiply(res1.first, res2.second), res2.first),
          FFT::multiply(res1.second, res2.second)};
}
vector<int> dfs(int u) {
  vector<int> heavyPath = {u};
  while (heavy[heavyPath.back()] != -1) {
    heavyPath.push_back(heavy[heavyPath.back()]);
  }
  vector<vector<int>> polynoms;
  while (heavyPath.size() > 0) {
    int u = heavyPath.back();
    heavyPath.pop_back();
    vector<int> polynom = {1};
    for (int v : edges[u]) {
      if (par[u] == v || v == heavy[u]) continue;
      polynom = dfs(v);
      ++polynom[0];
    }
    polynom.push_back(0);
    for (int i = (int)polynom.size() - 1; i > 0; --i) {
      polynom[i] = polynom[i - 1];
    }
    polynom[0] = 0;
    polynoms.push_back(polynom);
  }
  return evaluate(polynoms).first;
}
void solve() {
  vector<int> poly = dfs(0);
  x %= MOD;
  int ans = (x == 0 ? poly[0] : 0), cur = 1;
  for (int i = 1; i < poly.size(); ++i) {
    ans = (1LL * cur * poly[i] + ans) % MOD;
    cur = 1LL * cur * (x + i) % MOD * power(i, MOD - 2) % MOD;
  }
  printf("%d\n", ans);
}
void init() {
  FFT::init_fft();
  dfsInit(0, -1);
}
void read() {
  scanf("%d %lld", &n, &x);
  for (int i = 1; i < n; ++i) {
    int u, v;
    scanf("%d %d", &u, &v);
    --u, --v;
    edges[u].push_back(v);
    edges[v].push_back(u);
  }
}
int main() {
  read();
  init();
  solve();
  return 0;
}