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;
char buf[25];
const int maxn = 100010;
const int mod = 998244353;
vector<int> v[maxn], w[maxn], f[maxn];
int rev[maxn * 4], lc[maxn], rc[maxn], siz[maxn];
int n;
long long X;
long long read() {
  long long x = 0, f = 0;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = 1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = (x << 1) + (x << 3) + (ch ^ 48);
    ch = getchar();
  }
  return f ? -x : x;
}
void write(int x) {
  if (!x) {
    putchar('0');
    return;
  }
  if (x < 0) {
    putchar('-');
    x = -x;
  }
  int cnt = 0;
  while (x) {
    buf[++cnt] = '0' + x % 10;
    x /= 10;
  }
  for (int i = cnt; i >= 1; --i) putchar(buf[i]);
}
int ksm(int x, int y) {
  int ans = 1;
  for (; y; y >>= 1) {
    if (y & 1) ans = 1ll * ans * x % mod;
    x = 1ll * x * x % mod;
  }
  return ans;
}
int pre(int x) {
  int N = 1, len = 0;
  while (N < (x + 1)) {
    N <<= 1;
    ++len;
  }
  --N;
  for (int i = 1; i <= N; ++i)
    rev[i] = (rev[i >> 1] >> 1) | ((i & 1) << (len - 1));
  return N;
}
void NTT(int N, vector<int>& a, int type) {
  for (int i = 1; i <= N; ++i)
    if (i < rev[i]) swap(a[i], a[rev[i]]);
  for (int i = 1; i < (N + 1); i <<= 1) {
    int W = ksm(type == 1 ? 3 : (mod + 1) / 3, (mod - 1) / (i * 2));
    for (int l = i * 2, j = 0; j <= N; j += l) {
      int w = 1;
      for (int k = j; k <= j + i - 1; ++k) {
        int x = a[k], y = 1ll * w * a[k + i] % mod;
        a[k] = (x + y) % mod;
        a[k + i] = (x - y + mod) % mod;
        w = 1ll * w * W % mod;
      }
    }
  }
  if (type == -1) {
    int inv = ksm((N + 1), mod - 2);
    for (int i = 0; i <= N; ++i) a[i] = 1ll * a[i] * inv % mod;
  }
}
vector<int> power(vector<int> A, vector<int> B) {
  int n = A.size(), m = B.size();
  int N = pre(n + m - 1);
  while (A.size() < N + 1) A.push_back(0);
  while (B.size() < N + 1) B.push_back(0);
  NTT(N, A, 1);
  NTT(N, B, 1);
  for (int i = 0; i <= N; ++i) A[i] = 1ll * A[i] * B[i] % mod;
  NTT(N, A, -1);
  while (A[N] == 0) {
    --N;
    A.pop_back();
  }
  return A;
}
void solve(int x, int l, int r, vector<int>& A, vector<int>& B) {
  if (l == r) {
    A = B = f[w[x][l]];
    return;
  }
  vector<int> lA, lB, rA, rB;
  int mid = (l + r) / 2;
  solve(x, l, mid, lA, lB);
  solve(x, mid + 1, r, rA, rB);
  B = power(lB, rB);
  A = power(lA, rB);
  for (int i = 0; i <= rA.size() - 1; ++i) A[i] = (A[i] + rA[i]) % mod;
}
void dfs1(int x, int from) {
  siz[x] = 1;
  for (int i = 0; i < v[x].size(); ++i) {
    int y = v[x][i];
    if (y == from) continue;
    dfs1(y, x);
    if (!lc[x])
      lc[x] = y;
    else
      rc[x] = y;
    siz[x] += siz[y];
  }
  if (lc[x] && rc[x] && siz[lc[x]] < siz[rc[x]]) swap(lc[x], rc[x]);
}
void dfs2(int x, int top) {
  if (lc[x]) dfs2(lc[x], top);
  w[top].push_back(rc[x]);
  if (rc[x]) dfs2(rc[x], rc[x]);
}
void dfs3(int x, int top) {
  if (lc[x]) dfs3(lc[x], top);
  if (rc[x]) dfs3(rc[x], rc[x]);
  if (x == top) {
    for (int i = 0; i < w[x].size(); ++i) {
      int y = w[x][i];
      if (y) {
        f[y].push_back(0);
        for (int j = f[y].size() - 1; j >= 1; --j) f[y][j] = f[y][j - 1];
        f[y][0] = 0;
      }
    }
    vector<int> A, B;
    solve(x, 0, w[x].size() - 1, A, B);
    for (int i = 0; i <= A.size() - 1; ++i) f[x].push_back(A[i]);
    f[x][0] += 1;
    f[x][0] %= mod;
  }
}
int main() {
  n = read();
  X = read();
  X %= mod;
  for (int i = 1; i <= n - 1; ++i) {
    int x = read(), y = read();
    v[x].push_back(y);
    v[y].push_back(x);
  }
  dfs1(1, 0);
  dfs2(1, 1);
  f[0].push_back(0);
  f[0].push_back(1);
  dfs3(1, 1);
  int sum = 1, ans = 1;
  for (int i = 2; i <= n; ++i) {
    sum = 1ll * sum * (i - 1 + X) % mod * ksm(i - 1, mod - 2) % mod;
    ans = (ans + 1ll * sum * f[1][i] % mod) % mod;
  }
  write(ans);
  putchar('\n');
  return 0;
}