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 G = 3;
int fact[100050], inv[100050];
int Wn[2][55][55];
int qpow(int base, int tms) {
  int tmp = 1;
  while (tms) {
    if (tms & 1) tmp = tmp * 1ll * base % mod;
    base = base * 1ll * base % mod;
    tms >>= 1;
  }
  return tmp;
}
void Pre() {
  for (int i = 0; i < 2; ++i) {
    int bse = i ? G : qpow(G, mod - 2);
    for (int j = 0; j <= 20; ++j)
      for (int k = 1, c = 1; k < (1 << j); k <<= 1, ++c)
        Wn[i][j][c] = qpow(bse, (mod - 1) / k / 2);
  }
}
int rev[262144], limit, l;
void init(int len) {
  limit = 1, l = 0;
  while (limit <= len) limit <<= 1, l++;
  for (int i = 0; i < limit; ++i)
    rev[i] = (rev[i >> 1] >> 1) | ((i & 1) << l - 1);
}
void NTT(int *A, int typ) {
  for (int i = 0; i < limit; ++i)
    if (i < rev[i]) swap(A[i], A[rev[i]]);
  for (int len = 1, ll = 1; len < limit; len <<= 1, ll++) {
    int wn = Wn[typ + (typ < 0)][l][ll];
    for (int i = 0; i < limit; i += len << 1)
      for (int j = 0, t = 1; j < len; j++, t = t * 1ll * wn % mod) {
        int x = A[i + j], y = A[i + j + len] * 1ll * t % mod;
        A[i + j] = (x + y) % mod;
        A[i + j + len] = (x - y + mod) % mod;
      }
  }
  if (typ == -1) {
    int inv = qpow(limit, mod - 2);
    for (int i = 0; i < limit; ++i) A[i] = A[i] * 1ll * inv % mod;
  }
}
void Mul(vector<int> A, vector<int> B, vector<int> &C) {
  if (A.size() + B.size() <= 200) {
    C.resize(A.size() + B.size() - 1);
    for (int i = 0; i < A.size() + B.size() - 1; ++i) C[i] = 0;
    for (int i = 0; i < A.size(); ++i)
      for (int j = 0; j < B.size(); ++j)
        C[i + j] = (C[i + j] + A[i] * 1ll * B[j] % mod) % mod;
    return;
  }
  init(A.size() + B.size());
  static int a[262144], b[262144], c[262144];
  for (int i = 0; i < A.size(); ++i) a[i] = A[i];
  for (int i = A.size(); i < limit; ++i) a[i] = 0;
  for (int i = 0; i < B.size(); ++i) b[i] = B[i];
  for (int i = B.size(); i < limit; ++i) b[i] = 0;
  NTT(a, 1);
  NTT(b, 1);
  for (int i = 0; i < limit; ++i) c[i] = a[i] * 1ll * b[i] % mod;
  NTT(c, -1);
  int t = A.size() + B.size() - 1;
  C.resize(t);
  for (int i = 0; i < t; ++i) C[i] = c[i];
}
int id[100050];
vector<int> A[100050], B[100050];
void FZ(int l, int r, vector<int> &ans, vector<int> &tt) {
  if (l == r) {
    ans = B[id[l]];
    ans[0]++;
    tt = B[id[l]];
    return;
  }
  int mid = (l + r) >> 1;
  vector<int> L, R, LL, RR;
  FZ(l, mid, L, LL);
  FZ(mid + 1, r, R, RR);
  Mul(LL, RR, tt);
  Mul(LL, R, ans);
  ans.resize(max(ans.size(), max(L.size(), LL.size())));
  int l1 = min(L.size(), ans.size());
  for (int i = 0; i < l1; ++i) ans[i] = (ans[i] + L[i]) % mod;
  int l2 = min(LL.size(), ans.size());
  for (int i = 0; i < l2; ++i) ans[i] = (ans[i] - LL[i] + mod) % mod;
}
void FZ2(int l, int r, vector<int> &ans) {
  if (l == r) {
    ans = A[id[l]];
    return;
  }
  int mid = (l + r) >> 1;
  vector<int> L, R;
  FZ2(l, mid, L);
  FZ2(mid + 1, r, R);
  Mul(L, R, ans);
}
int n;
long long s;
vector<int> edge[100050];
int son[100050], sz[100050];
int ed[100050];
void get_son(int pos, int lst) {
  sz[pos] = 1;
  for (auto v : edge[pos]) {
    if (v != lst) {
      get_son(v, pos);
      sz[pos] += sz[v];
      if (sz[v] > sz[son[pos]]) son[pos] = v;
    }
  }
}
vector<int> useless;
void dfs(int pos, int top, int lst) {
  ed[top] = pos;
  if (son[pos]) dfs(son[pos], top, pos);
  int cnt = 0;
  for (auto v : edge[pos])
    if (v != lst && v != son[pos]) dfs(v, v, pos);
  for (auto v : edge[pos])
    if (v != lst && v != son[pos]) id[++cnt] = v;
  if (cnt) {
    FZ2(1, cnt, B[pos]);
    B[pos].push_back(0);
    for (int i = B[pos].size() - 1; i >= 1; --i) B[pos][i] = B[pos][i - 1];
    B[pos][0] = 0;
  } else {
    B[pos].push_back(0);
    B[pos].push_back(1);
  }
  if (pos == top) {
    int cnt = 0, cur = pos;
    while (cur) {
      id[++cnt] = cur;
      cur = son[cur];
    }
    FZ(1, cnt, A[pos], useless);
  }
}
int main() {
  Pre();
  fact[0] = inv[0] = 1;
  for (int i = 1; i <= 100000; ++i)
    fact[i] = fact[i - 1] * 1ll * i % mod, inv[i] = qpow(fact[i], mod - 2);
  scanf("%d", &n);
  scanf("%lld", &s);
  for (int i = 1; i < n; ++i) {
    int u, v;
    scanf("%d%d", &u, &v);
    edge[u].push_back(v);
    edge[v].push_back(u);
  }
  get_son(1, 0);
  dfs(1, 1, 0);
  long long cur = 1, as = 0;
  for (int i = 1; i <= n; ++i) {
    if (i > 1) cur = cur * 1ll * ((s + i - 1) % mod) % mod;
    as = (as + A[1][i] * 1ll * cur % mod * inv[i - 1] % mod) % mod;
  }
  printf("%lld\n", as);
}