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 = 0x3fffffff;
const int SINF = 0x7fffffff;
const long long LINF = 0x3fffffffffffffff;
const long long SLINF = 0x7fffffffffffffff;
const int MAXN = 100007;
const int MAXL = 19;
const int MOD = 998244353;
const int RT = 3;
struct eT {
  void setd(int _u, int _v, int _l) { u = _u, v = _v, last = _l; }
  int u, v, last;
} edge[MAXN * 2];
int n, X;
int ke, la[MAXN];
int sz[MAXN], pre[MAXN], kp;
int wc[MAXN], lc[MAXN];
int tna[MAXN];
int dp[MAXN << 1], tmpa[MAXN << 1], tmpb[MAXN << 1], tmp_mul[MAXN];
int ca[MAXN << 2], cb[MAXN << 2], cans[MAXN << 2], rt[MAXN << 2],
    irt[MAXL][MAXN << 2];
void init();
void input();
void work();
void mul(int a[], int n, int b[], int m, int ans[]);
void fft(int ar[], int tn);
int divi(int a[], int l, int r, int ta[], int tb[]);
int dfs1(int now, int fa);
void dfs2(int now);
void dfs(int now);
int add(int x, int y) {
  x += y;
  return (x < MOD) ? x : (x - MOD);
}
void addv(int &x, int y) {
  x += y;
  (x < MOD) ? x : (x -= MOD);
}
int sub(int x, int y) {
  x -= y;
  return (x >= 0) ? x : (x + MOD);
}
void subv(int &x, int y) {
  x -= y;
  (x >= 0) ? x : (x += MOD);
}
int qpow(int a, int b) {
  long long base = a, ans = 1;
  while (b) {
    if (b & 1) (ans *= base) %= MOD;
    (base *= base) %= MOD;
    b >>= 1;
  }
  return static_cast<int>(ans);
}
int main() {
  init();
  input();
  work();
}
void init() {
  ios::sync_with_stdio(false);
  for (int i = 0; i < MAXL; ++i) {
    int tn = 1 << i;
    int nrt = qpow(RT, (MOD - 1) / tn);
    irt[i][0] = 1;
    for (int j = 1; j < tn; ++j)
      irt[i][j] = static_cast<long long>(irt[i][j - 1]) * nrt % MOD;
  }
}
void input() {
  long long tX;
  scanf("%d%I64d", &n, &tX);
  X = tX % MOD;
  int u, v;
  memset(la, -1, sizeof(la));
  for (int i = 1; i < n; ++i) {
    scanf("%d%d", &u, &v);
    edge[ke].setd(u, v, la[u]);
    la[u] = ke++;
    edge[ke].setd(v, u, la[v]);
    la[v] = ke++;
  }
}
void work() {
  dfs1(1, -1);
  dfs2(1);
  dp[0] = 1;
  dfs(1);
  int ans = 0, nC = 1;
  for (int i = 1; i <= n; ++i) {
    addv(ans, static_cast<long long>(nC) * dp[(pre[1] << 1) + i] % MOD);
    nC = static_cast<long long>(nC) * (X + i) % MOD * qpow(i, MOD - 2) % MOD;
  }
  printf("%d\n", ans);
}
void mul(int a[], int n, int b[], int m, int ans[]) {
  int nm = n + m, tn = 1, tb = 0;
  while (tn <= nm) tn <<= 1, ++tb;
  for (int i = 0; i <= n; ++i) ca[i] = a[i];
  for (int i = n + 1; i < tn; ++i) ca[i] = 0;
  for (int i = 0; i <= m; ++i) cb[i] = b[i];
  for (int i = m + 1; i < tn; ++i) cb[i] = 0;
  for (int i = 0; i < tn; ++i) rt[i] = irt[tb][i];
  fft(ca, tn);
  fft(cb, tn);
  for (int i = 0; i < tn; ++i)
    cans[i] = static_cast<long long>(ca[i]) * cb[i] % MOD;
  reverse(rt + 1, rt + tn);
  fft(cans, tn);
  int rn = qpow(tn, MOD - 2);
  for (int i = 0; i <= nm; ++i)
    ans[i] = static_cast<long long>(cans[i]) * rn % MOD;
}
void fft(int ar[], int tn) {
  for (int i = 0, j = 0; i < tn; ++i) {
    if (i > j) swap(ar[i], ar[j]);
    for (int bt = tn >> 1; bt && (!((j ^= bt) & bt)); bt >>= 1)
      ;
  }
  int m, x, y;
  for (int i = 2; i <= tn; i <<= 1) {
    m = i >> 1;
    for (int j = 0; j < tn; j += i) {
      for (int k = 0; k < m; ++k) {
        x = ar[j + k],
        y = static_cast<long long>(ar[j + k + m]) * rt[tn / i * k] % MOD;
        ar[j + k] = add(x, y);
        ar[j + k + m] = sub(x, y);
      }
    }
  }
}
int divi(int a[], int l, int r, int ta[], int tb[]) {
  if (l == r) {
    ta[0] = tb[0] = 0;
    for (int i = 1; i <= sz[a[l]] + 1; ++i) {
      ta[i] = tb[i] = dp[(pre[a[l]] << 1) + i - 1];
    }
    return sz[a[l]] + 1;
  }
  int mid = (l + r) >> 1;
  int sl = divi(a, l, mid, ta, tb);
  int sr = divi(a, mid + 1, r, ta + sl + 1, tb + sl + 1);
  mul(tb, sl, ta + sl + 1, sr, tmp_mul);
  for (int i = 0; i <= sr; ++i) ta[sl + 1 + i] = 0;
  for (int i = 0; i <= sl + sr; ++i) addv(ta[i], tmp_mul[i]);
  mul(tb, sl, tb + sl + 1, sr, tb);
  return sl + sr;
}
int dfs1(int now, int fa) {
  sz[now] = 1;
  int v, ch[2] = {0, 0}, kc = 0;
  for (int i = la[now]; ~i; i = edge[i].last) {
    if ((v = edge[i].v) ^ fa) {
      ch[kc++] = v;
      sz[now] += dfs1(v, now);
    }
  }
  if (sz[ch[0]] < sz[ch[1]]) swap(ch[0], ch[1]);
  wc[now] = ch[0], lc[now] = ch[1];
  return sz[now];
}
void dfs2(int now) {
  pre[now] = ++kp;
  if (wc[now]) dfs2(wc[now]);
  if (lc[now]) dfs2(lc[now]);
}
void dfs(int now) {
  for (int t = now; t; t = wc[t])
    if (lc[t]) dfs(lc[t]);
  int kt = 0;
  for (int t = now; t; t = wc[t]) tna[++kt] = lc[t];
  divi(tna, 1, kt, tmpa, tmpb);
  for (int i = 0; i <= sz[now]; ++i) dp[(pre[now] << 1) + i] = tmpa[i];
  addv(dp[pre[now] << 1], 1);
}