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;
using INT = long long;
using pii = pair<int, int>;
using VI = vector<int>;
using PVV = pair<VI, VI>;
using VVI = vector<VI>;
const int NN = 1e5 + 10;
const int mod = 998244353;
const int root = 31;
int power(int a, int b, int m = mod, int ans = 1) {
  for (; b; b >>= 1, a = (INT)a * a % m)
    if (b & 1) ans = (INT)ans * a % m;
  return ans;
}
const int root_1 = power(root, mod - 2, mod);
void fft(VI& a, bool invert) {
  int n = a.size();
  int PW = power(invert ? root_1 : root, (mod - 1) / n, mod);
  for (int m = n, h; h = m / 2, m >= 2; PW = 1LL * PW * PW % mod, m = h) {
    for (int i = 0, w = 1; i < h; ++i, w = 1LL * w * PW % mod)
      for (int j = i; j < n; j += m) {
        int k = j + h, first = (a[j] - a[k] + mod) % mod;
        a[j] += a[k];
        a[j] %= mod;
        a[k] = 1LL * w * first % mod;
      }
  }
  for (int i = 0, j = 1; j < n - 1; ++j) {
    for (int k = n / 2; k > (i ^= k); k /= 2)
      ;
    if (j < i) swap(a[i], a[j]);
  }
  if (invert) {
    int rev = power(n, mod - 2, mod);
    for (int i = 0; i < n; ++i) a[i] = 1LL * a[i] * rev % mod;
  }
}
VI multiply(VI& a, VI& b) {
  int n = max(a.size(), b.size());
  if (n <= 64) {
    VI c(a.size() + b.size() - 1, 0);
    for (int i = 0; i < a.size(); i++)
      for (int j = 0; j < b.size(); j++) {
        c[i + j] = (c[i + j] + (INT)a[i] * b[j]) % mod;
      }
    return c;
  }
  for (n = 1; n < a.size() + b.size() - 1; n <<= 1)
    ;
  VI na = a, nb = b;
  na.resize(n);
  nb.resize(n);
  fft(na, false);
  fft(nb, false);
  for (int i = 0; i < n; i++) na[i] = (INT)na[i] * nb[i] % mod;
  fft(na, true);
  na.resize(a.size() + b.size() - 1);
  return na;
}
VI Plus(const VI& a, const VI& b) {
  VI c(max(a.size(), b.size()), 0);
  for (int i = 0; i < c.size(); i++) {
    if (i < a.size()) c[i] = a[i];
    if (i < b.size()) c[i] = (c[i] + b[i]) % mod;
  }
  return c;
}
int sz[NN], heavy[NN];
VI a[NN], V[NN];
PVV merg(int L, int R, VVI& F) {
  if (L + 1 == R) return PVV(F[L], F[L]);
  PVV st = merg(L, (L + R >> 1), F);
  PVV ed = merg((L + R >> 1), R, F);
  return PVV(multiply(st.first, ed.first),
             Plus(st.second, multiply(st.first, ed.second)));
}
int predfs(int u, int fa = 0) {
  for (auto& v : a[u])
    if (v == fa) {
      swap(v, a[u].back());
      a[u].pop_back();
      break;
    }
  sz[u] = 1;
  for (auto v : a[u]) {
    sz[u] += predfs(v, u);
    if (sz[heavy[u]] < sz[v]) heavy[u] = v;
  }
  return sz[u];
}
void dfs(int u) {
  for (int v = u; v; v = heavy[v]) {
    for (auto r : a[v])
      if (r != heavy[v]) dfs(r);
  }
  VVI F;
  if (u - 1) F.push_back(VI{0, 1});
  for (int v = u, flag; v; v = heavy[v]) {
    flag = 0;
    for (auto r : a[v])
      if (r != heavy[v]) F.push_back(V[r]), flag = 1;
    if (!flag) F.push_back(VI{0, 1});
  }
  V[u] = merg(0, F.size(), F).second;
}
int main() {
  int n, ans = 0;
  INT first;
  scanf("%d %I64d", &n, &first);
  first %= mod;
  for (int u, v, i = 1; i < n; i++) {
    scanf("%d %d", &u, &v);
    a[u].push_back(v);
    a[v].push_back(u);
  }
  predfs(1);
  dfs(1);
  for (int i = 1, C = 1; i <= n; i++) {
    ans += (INT)C * V[1][i] % mod;
    if (ans >= mod) ans -= mod;
    C = (INT)C * (first + i) % mod * power(i, mod - 2) % mod;
  }
  printf("%d\n", ans);
  return 0;
}