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 MAXN = (1 << 18) + 5;
const int MOD = 998244353;
template <typename T>
inline void read(T &AKNOI) {
  T x = 0, flag = 1;
  char ch = getchar();
  while (!isdigit(ch)) {
    if (ch == '-') flag = -1;
    ch = getchar();
  }
  while (isdigit(ch)) {
    x = x * 10 + ch - '0';
    ch = getchar();
  }
  AKNOI = flag * x;
}
namespace ModCalculator {
inline void Inc(int &x, int y) {
  x += y;
  if (x >= MOD) x -= MOD;
}
inline void Dec(int &x, int y) {
  x -= y;
  if (x < 0) x += MOD;
}
inline int Add(int x, int y) {
  Inc(x, y);
  return x;
}
inline int Sub(int x, int y) {
  Dec(x, y);
  return x;
}
inline int Mul(int x, int y) { return 1LL * x * y % MOD; }
}  // namespace ModCalculator
using namespace ModCalculator;
inline int ksm(int x, int k) {
  int ret = 1;
  while (k) {
    if (k & 1) ret = Mul(ret, x);
    x = Mul(x, x);
    k >>= 1;
  }
  return ret;
}
long long m;
int n, fa[MAXN], siz[MAXN], son[MAXN], id[MAXN];
int len, rev[MAXN], w1[MAXN], w2[MAXN], inv[MAXN];
vector<int> e[MAXN];
vector<int> dp[MAXN];
void NTT_init(int m) {
  for (len = 1; len < m; len <<= 1)
    ;
  int Gi = 3, Gv = ksm(Gi, MOD - 2);
  for (int i = 1; i < len; i <<= 1) {
    int wn1 = ksm(Gi, (MOD - 1) / (i << 1)), wk1 = 1;
    int wn2 = ksm(Gv, (MOD - 1) / (i << 1)), wk2 = 1;
    for (int k = 0; k < i; ++k) {
      w1[i + k] = wk1;
      wk1 = Mul(wk1, wn1);
      w2[i + k] = wk2;
      wk2 = Mul(wk2, wn2);
    }
  }
}
inline void GetRev(int m) {
  int bit = -1;
  for (len = 1; len < m; len <<= 1, ++bit)
    ;
  for (int i = 0; i < len; ++i) {
    rev[i] = (rev[i >> 1] >> 1) | ((i & 1) << bit);
  }
}
void NTT(vector<int> &a, int type) {
  int *w = (type == 1) ? w1 : w2;
  for (int i = 0; i < len; ++i) {
    if (i < rev[i]) {
      swap(a[i], a[rev[i]]);
    }
  }
  for (int i = 1; i < len; i <<= 1) {
    for (int j = 0; j < len; j += (i << 1)) {
      for (int k = 0; k < i; ++k) {
        int x = a[j + k], y = Mul(w[i + k], a[j + k + i]);
        a[j + k] = Add(x, y);
        a[j + k + i] = Sub(x, y);
      }
    }
  }
  if (type == 1) return;
  int ninv = ksm(len, MOD - 2);
  for (int i = 0; i < len; ++i) {
    a[i] = Mul(a[i], ninv);
  }
}
vector<int> operator*(vector<int> a, vector<int> b) {
  int deg = a.size() + b.size() - 1;
  GetRev(deg);
  a.resize(len);
  b.resize(len);
  NTT(a, 1);
  NTT(b, 1);
  for (int i = 0; i < len; ++i) {
    a[i] = Mul(a[i], b[i]);
  }
  NTT(a, -1);
  a.resize(deg);
  return a;
}
vector<int> operator+(vector<int> a, vector<int> b) {
  if (a.size() < b.size()) a.resize(b.size());
  for (int i = 0; i < b.size(); ++i) {
    Inc(a[i], b[i]);
  }
  return a;
}
void Prod(int l, int r, vector<int> &f, vector<int> &g) {
  if (l == r) {
    f = g = dp[id[l]];
    return;
  }
  int mid = (l + r) >> 1;
  vector<int> fl, fr, gl, gr;
  Prod(l, mid, fl, gl);
  Prod(mid + 1, r, fr, gr);
  f = fl + gl * fr;
  g = gl * gr;
}
void DFS1(int u) {
  siz[u] = 1;
  for (auto v : e[u]) {
    if (v == fa[u]) continue;
    fa[v] = u;
    DFS1(v);
    if (siz[v] > siz[son[u]]) son[u] = v;
    siz[u] += siz[v];
  }
}
void DFS2(int u) {
  for (auto v : e[u]) {
    if (v == fa[u]) continue;
    DFS2(v);
  }
  if (u == son[fa[u]]) return;
  int top = 0;
  for (int v = u; v; v = son[v]) {
    if (dp[v].empty()) dp[v].push_back(0);
    Inc(dp[v][0], 1);
    dp[v].insert(dp[v].begin(), 0);
    id[++top] = v;
  }
  vector<int> f, g;
  Prod(1, top, f, g);
  dp[fa[u]] = f;
}
void init() {
  read(n);
  read(m);
  for (int i = 1, u, v; i < n; ++i) {
    read(u);
    read(v);
    e[u].push_back(v);
    e[v].push_back(u);
  }
  NTT_init((n + 1) << 1);
  inv[0] = inv[1] = 1;
  for (int i = 2; i <= n; ++i) {
    inv[i] = Mul(MOD - MOD / i, inv[MOD % i]);
  }
}
void solve() {
  DFS1(1);
  DFS2(1);
  int ans = 0, sz = min((int)dp[0].size(), n + 1), _m = m % MOD;
  for (int i = 1, c = 1; i < sz; ++i) {
    Inc(ans, Mul(dp[0][i], c));
    c = Mul(c, Mul(Add(_m, i), inv[i]));
  }
  printf("%d\n", ans);
}
int main() {
  init();
  solve();
  return 0;
}