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 inf = (int)1e9;
const long long INF = (long long)5e18;
const int MOD = 998244353;
int add(int x, int y) {
  x += y;
  return x >= MOD ? x - MOD : x;
}
int sub(int x, int y) {
  x -= y;
  return x < 0 ? x + MOD : x;
}
void Add(int &x, int y) {
  x += y;
  if (x >= MOD) x -= MOD;
}
void Sub(int &x, int y) {
  x -= y;
  if (x < 0) x += MOD;
}
void Mul(int &x, int y) { x = (long long)(x) * (y) % MOD; }
int qpow(int x, int y) {
  int ret = 1;
  while (y) {
    if (y & 1) ret = (long long)(ret) * (x) % MOD;
    x = (long long)(x) * (x) % MOD;
    y >>= 1;
  }
  return ret;
}
void checkmin(int &x, int y) {
  if (x > y) x = y;
}
void checkmax(int &x, int y) {
  if (x < y) x = y;
}
void checkmin(long long &x, long long y) {
  if (x > y) x = y;
}
void checkmax(long long &x, long long y) {
  if (x < y) x = y;
}
inline int read() {
  int x = 0, f = 1;
  char c = getchar();
  while (c > '9' || c < '0') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9')
    x = (x << 1) + (x << 3) + (c ^ 48), c = getchar();
  return x * f;
}
const int N = 100005;
int G[N << 2], IG[N << 2];
void print(vector<int> A) {
  for (int i = 0; i < (int)A.size(); i++) printf("%d ", A[i]);
  puts("");
}
namespace FFT {
int rev[N << 2];
int init(int n) {
  int len = 1;
  while (len < n) len <<= 1;
  rev[0] = 0;
  for (int i = 1; i < len; i++)
    rev[i] = (rev[i >> 1] >> 1) + (i & 1 ? len >> 1 : 0);
  return len;
}
void ntt(vector<int> &a, int len, int flag) {
  for (int i = 0; i < len; i++)
    if (i < rev[i]) swap(a[i], a[rev[i]]);
  for (int h = 1; h < len; h <<= 1) {
    int wn = (flag == -1 ? IG[h << 1] : G[h << 1]);
    for (int i = 0; i < len; i += (h << 1)) {
      int W = 1, tmp1, tmp2;
      for (int j = i; j < i + h; j++, Mul(W, wn)) {
        tmp1 = a[j], tmp2 = (long long)(a[j + h]) * (W) % MOD;
        a[j] = add(tmp1, tmp2);
        a[j + h] = sub(tmp1, tmp2);
      }
    }
  }
  if (flag == -1) {
    int invlen = qpow(len, MOD - 2);
    for (int i = 0; i < len; i++) Mul(a[i], invlen);
  }
}
void multi(vector<int> &a, vector<int> b, int len) {
  ntt(a, len, 1);
  ntt(b, len, 1);
  for (int i = 0; i < len; i++) Mul(a[i], b[i]);
  ntt(a, len, -1);
}
}  // namespace FFT
vector<int> operator*(vector<int> A, vector<int> B) {
  int M = (int)A.size() + (int)B.size() - 1;
  int len = FFT::init(M);
  A.resize(len);
  B.resize(len);
  FFT::multi(A, B, len);
  A.resize(M);
  return A;
}
vector<int> operator+(vector<int> A, vector<int> B) {
  int len = max((int)A.size(), (int)B.size());
  A.resize(len);
  B.resize(len);
  for (register int i = 0; i < len; ++i) Add(A[i], B[i]);
  return A;
}
vector<int> mulX(vector<int> A) {
  int M = (int)A.size();
  A.resize(M + 1);
  for (int i = M; i >= 1; i--) A[i] = A[i - 1];
  A[0] = 0;
  return A;
}
vector<int> sub0(vector<int> A) {
  Add(A[0], MOD - 1);
  return A;
}
vector<int> add0(vector<int> A) {
  Add(A[0], 1);
  return A;
}
vector<int> a[N];
void CDQ(vector<int> &F, vector<int> &G, int l, int r) {
  if (l == r) {
    F = add0(a[l]), G = a[l];
    return;
  }
  int mid = (l + r) >> 1;
  vector<int> Fl, Fr, Gl, Gr;
  CDQ(Fl, Gl, l, mid);
  CDQ(Fr, Gr, mid + 1, r);
  G = Gl * Gr;
  F = sub0(Fl) * Gr + Fr;
}
vector<int> v[N];
int n;
int son[N][2], sz[N];
void dfs1(int u, int f) {
  sz[u] = 1;
  int cnt = 0;
  for (auto &to : v[u]) {
    if (to == f) continue;
    dfs1(to, u);
    sz[u] += sz[to];
    son[u][cnt++] = to;
  }
  if (cnt == 2 && sz[son[u][0]] < sz[son[u][1]]) swap(son[u][0], son[u][1]);
}
int top[N];
vector<int> dp[N];
void dfs2(int u) {
  if (son[u][0]) top[son[u][0]] = top[u], dfs2(son[u][0]);
  if (son[u][1]) top[son[u][1]] = son[u][1], dfs2(son[u][1]);
  if (top[u] == u) {
    int m = 0, now = u;
    vector<int> One;
    One.clear();
    One.push_back(1);
    while (now) {
      if (son[now][1])
        a[++m] = mulX(dp[son[now][1]]);
      else
        a[++m] = mulX(One);
      now = son[now][0];
    }
    reverse(a + 1, a + m + 1);
    vector<int> G;
    CDQ(dp[u], G, 1, m);
  }
}
long long X;
int C[N];
void init() {
  for (int i = 1; i < N * 4; i <<= 1) {
    G[i] = qpow(3, (MOD - 1) / i);
    IG[i] = qpow(G[i], MOD - 2);
  }
  n = read();
  scanf("%lld", &X);
  X %= MOD;
  C[0] = 1;
  for (int i = 1; i <= n; i++) dp[i].clear();
  for (int i = 1; i <= n; i++) {
    int A = add(X, i), B = i;
    C[i] = (long long)(C[i - 1]) * ((long long)(A) * (qpow(B, MOD - 2)) % MOD) %
           MOD;
  }
  for (int i = 1; i < n; i++) {
    int x = read(), y = read();
    v[x].push_back(y);
    v[y].push_back(x);
  }
}
void solve() {
  int ans = 0;
  for (int i = 1; i <= n; i++) {
    Add(ans, (long long)(dp[1][i]) * (C[i - 1]) % MOD);
  }
  cout << ans << endl;
}
int main() {
  init();
  dfs1(1, -1);
  top[1] = 1;
  dfs2(1);
  solve();
  return 0;
}