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 + 5;
const int Mod = 998244353;
int add(int a, int b) { return a + b >= Mod ? a + b - Mod : a + b; }
int mul(int a, int b) { return 1ll * a * b % Mod; }
int ksm(int a, int b) {
  int ans = 1;
  for (; b; b >>= 1, a = mul(a, a))
    if (b & 1) ans = mul(ans, a);
  return ans;
}
void Mul(int &a, int b) { a = mul(a, b); }
void Add(int &a, int b) { a = add(a, b); }
int dec(int a, int b) { return a - b < 0 ? a - b + Mod : a - b; }
vector<int> a[N];
int inv[N];
void Cout(vector<int> tt) {
  for (int i = 0; i < tt.size(); i++) cout << tt[i] << " ";
  cout << '\n';
}
namespace Poly {
int bit, up, rev[N << 2];
void init(int deg) {
  up = 1;
  bit = 0;
  while (up <= deg) up <<= 1, ++bit;
  for (int i = 0; i < up; i++)
    rev[i] = (rev[i >> 1] >> 1) | ((i & 1) << bit - 1);
}
const int C = 19;
vector<int> w[C + 1];
void prework() {
  for (int i = 1; i <= C; i++) w[i].resize(1 << i - 1);
  int wn = ksm(3, (Mod - 1) / (1 << C));
  w[C][0] = 1;
  for (int i = 1; i < (1 << C - 1); i++) w[C][i] = mul(w[C][i - 1], wn);
  for (int i = C - 1; i; i--)
    for (int j = 0; j < (1 << i - 1); j++) w[i][j] = w[i + 1][j << 1];
}
void NTT(vector<int> &a, int typ) {
  for (int i = 0; i < up; i++)
    if (i < rev[i]) swap(a[i], a[rev[i]]);
  for (int l = 1, i = 1; i < up; i <<= 1, ++l)
    for (int j = 0; j < up; j += (i << 1))
      for (int k = 0; k < i; k++) {
        int x = a[k + j], y = mul(w[l][k], a[k + j + i]);
        a[k + j] = add(x, y);
        a[k + j + i] = dec(x, y);
      }
  if (typ == -1) {
    reverse(a.begin() + 1, a.end());
    for (int i = 0, inv = ksm(up, Mod - 2); i < up; i++) a[i] = mul(a[i], inv);
  }
}
vector<int> operator*(vector<int> a, vector<int> b) {
  int deg = a.size() + b.size() - 1;
  init(deg);
  a.resize(up);
  b.resize(up);
  NTT(a, 1);
  NTT(b, 1);
  for (int i = 0; i < up; i++) Mul(a[i], b[i]);
  NTT(a, -1);
  a.resize(deg);
  return a;
}
vector<int> operator+(vector<int> a, vector<int> b) {
  int deg = max(a.size(), b.size());
  a.resize(deg);
  b.resize(deg);
  for (int i = 0; i < deg; i++) a[i] = add(a[i], b[i]);
  return a;
}
void Solve(int l, int r, vector<int> &F, vector<int> &G) {
  if (l == r) {
    F = G = a[l];
    return;
  }
  int mid = (l + r) >> 1;
  vector<int> Fl, Fr, Gl, Gr;
  Solve(l, mid, Fl, Gl);
  Solve(mid + 1, r, Fr, Gr);
  F = Fl * Fr;
  G = Gl + Fl * Gr;
}
}  // namespace Poly
int n;
long long K;
vector<int> v[N];
int sz[N], son[N], fa[N];
void pre_dfs(int u, int f) {
  sz[u] = 1;
  for (int i = 0; i < v[u].size(); i++) {
    int t = v[u][i];
    if (t == f) continue;
    fa[t] = u;
    pre_dfs(t, u);
    sz[u] += sz[t];
    if (sz[t] > sz[son[u]]) son[u] = t;
  }
}
vector<int> f[N];
vector<int> calc(int u) {
  for (int t = u; t; t = son[t]) {
    for (int i = 0; i < v[t].size(); i++)
      if ((v[t][i] ^ fa[t]) && (v[t][i] ^ son[t])) f[t] = calc(v[t][i]);
    if (f[t].empty()) f[t].push_back(0);
    ++f[t][0];
    f[t].insert(f[t].begin(), 0);
  }
  int k = 0;
  for (int t = u; t; t = son[t]) swap(a[++k], f[t]);
  vector<int> F, G;
  Poly::Solve(1, k, F, G);
  return G;
}
int main() {
  scanf("%d%lld", &n, &K);
  Poly::prework();
  inv[0] = inv[1] = 1;
  for (int i = 2; i <= n; i++) inv[i] = mul(Mod - Mod / i, inv[Mod % i]);
  for (int i = 1; i < n; i++) {
    int x, y;
    scanf("%d%d", &x, &y);
    v[x].push_back(y);
    v[y].push_back(x);
  }
  pre_dfs(1, 0);
  vector<int> g = calc(1);
  int Binom = 1, ans = 0;
  for (int i = 1; i < g.size(); i++) {
    Add(ans, mul(Binom, g[i]));
    Mul(Binom, mul((K + i) % Mod, inv[i]));
  }
  cout << ans;
  return 0;
}