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 = 262144, P = 998244353;
using ll = long long;
int rev[N], lim, d;
ll wn[N + 1];
ll qpow(ll a, ll b) {
  ll ret = 1;
  while (b) {
    if (b & 1) ret = ret * a % P;
    a = a * a % P;
    b >>= 1;
  }
  return ret;
}
void FFTinit(int n) {
  wn[0] = lim = 1;
  d = 0;
  while (lim < n) lim <<= 1, ++d;
  for (int i = 0; i < lim; i++)
    rev[i] = (rev[i >> 1] >> 1) | ((i & 1) << (d - 1));
  int g = qpow(3, (P - 1) / lim);
  for (int i = 1; i <= lim; i++) wn[i] = wn[i - 1] * g % P;
}
inline void modp(int &x) {
  if (x >= P) x -= P;
}
void FFT(int a[], int fl) {
  for (int i = 0; i < lim; i++)
    if (i < rev[i]) swap(a[i], a[rev[i]]);
  for (int s = 1; s < lim; s <<= 1) {
    int wnp = lim / s / 2;
    for (int i = 0; i < lim; i += s * 2)
      for (int j = 0; j < s; j++) {
        int x = a[i + j],
            y = a[i + j + s] * wn[fl == 1 ? wnp * j : lim - wnp * j] % P;
        modp(a[i + j] = x + y);
        modp(a[i + j + s] = x + P - y);
      }
  }
  if (fl == -1) {
    ll inv = qpow(lim, P - 2);
    for (int i = 0; i < lim; i++) a[i] = a[i] * inv % P;
  }
}
int ta[N], tb[N];
struct Poly {
  vector<int> a;
  inline int &operator[](size_t x) { return a[x]; }
  inline const int &operator[](size_t x) const { return a[x]; }
  inline void assign(int *l, int *r) { a.assign(l, r); }
  inline int size() const { return a.size(); }
};
Poly operator~(Poly a) {
  a.a.insert(a.a.begin(), 0);
  return a;
}
inline Poly operator-(Poly a, int b) {
  a[0] -= b;
  return a;
}
inline Poly operator+(Poly a, int b) {
  a[0] += b;
  return a;
}
Poly operator+(const Poly &a, const Poly &b) {
  Poly ret;
  ret.a.assign(max(a.size(), b.size()), 0);
  for (int i = 0; i < a.size(); i++) ret[i] = a[i];
  for (int i = 0; i < b.size(); i++) modp(ret[i] += b[i]);
  return ret;
}
Poly operator*(const Poly &a, const Poly &b) {
  Poly ret;
  int n = a.size(), m = b.size();
  FFTinit(n + m - 1);
  copy(a.a.begin(), a.a.end(), ta);
  copy(b.a.begin(), b.a.end(), tb);
  memset(ta + n, 0, (lim - n) * sizeof(int));
  FFT(ta, 1);
  memset(tb + m, 0, (lim - m) * sizeof(int));
  FFT(tb, 1);
  for (int i = 0; i < lim; i++) ta[i] = ll(ta[i]) * tb[i] % P;
  FFT(ta, -1);
  ret.assign(ta, ta + n + m - 1);
  return ret;
}
vector<int> v[N];
int sz[N], ch[N][2], n;
ll xx;
int dfs(int pos, int fa) {
  for (auto &i : v[pos])
    if (i != fa) ch[pos][!!ch[pos][0]] = i, sz[pos] += dfs(i, pos);
  if (sz[ch[pos][0]] < sz[ch[pos][1]]) swap(ch[pos][0], ch[pos][1]);
  return ++sz[pos];
}
vector<Poly> p[N];
int sum[N];
pair<Poly, Poly> calc(int pos, int l, int r) {
  if (l == r) return {p[pos][l] + 1, p[pos][l]};
  int mid = (l + r) >> 1;
  pair<Poly, Poly> lret = calc(pos, l, mid), rret = calc(pos, mid + 1, r);
  return {(lret.first - 1) * rret.second + rret.first,
          lret.second * rret.second};
}
Poly solve(int pos, int top) {
  if (ch[pos][0]) solve(ch[pos][0], top);
  if (ch[pos][1])
    p[top].push_back(~solve(ch[pos][1], ch[pos][1]));
  else {
    Poly pp{{0, 1}};
    p[top].push_back(pp);
  }
  if (pos == top) return calc(top, 0, p[top].size() - 1).first;
  return Poly();
}
int main() {
  ios::sync_with_stdio(false);
  cin >> n >> xx;
  int t1, t2;
  for (int i = 1; i < n; i++)
    cin >> t1 >> t2, v[t1].push_back(t2), v[t2].push_back(t1);
  dfs(1, 0);
  Poly ret = solve(1, 1);
  xx %= P;
  ll ans = 0, c = 1;
  assert(ret.size() >= n);
  for (int i = 1; i <= n; i++) {
    ans = (ans + c * ret[i] % P) % P;
    c = c * qpow(i, P - 2) % P * (xx + i) % P;
  }
  cout << ans << endl;
  return 0;
}