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;
inline int q_pow(int x, int n) {
  int ret = 1;
  for (; n; n >>= 1, x = (long long)x * x % 998244353)
    if (n & 1) ret = (long long)ret * x % 998244353;
  return ret;
}
int n, ans;
long long X;
void NTT(int *a, int len, int flag) {
  int i, j, k, t, w, x, tmp;
  for (i = k = 0; i < len; i++) {
    if (i > k) swap(a[i], a[k]);
    for (int j = len >> 1; (k ^= j) < j; j >>= 1)
      ;
  }
  for (k = 2; k <= len; k <<= 1) {
    x = q_pow(3, (998244353 - 1) / k);
    if (flag == -1) x = q_pow(x, 998244353 - 2);
    t = k >> 1;
    for (i = 0; i < len; i += k)
      for (j = i, w = 1; j < i + t; j++, w = (long long)w * x % 998244353)
        tmp = (long long)w * a[j + t] % 998244353,
        a[j + t] = (a[j] - tmp) % 998244353, a[j] = (a[j] + tmp) % 998244353;
  }
  if (flag == -1)
    for (i = 0, t = q_pow(len, 998244353 - 2); i < len; i++)
      a[i] = (long long)a[i] * t % 998244353;
}
int A[100005 << 2], B[100005 << 2];
struct poly {
  vector<int> a;
  int len;
  poly() {
    a.clear();
    len = 0;
  }
  poly(int x, int y) {
    poly(), a.push_back(x), len = 1;
    if (y) a.push_back(y), len++;
  }
  void resize(int x) {
    a.resize(x);
    for (int i = len; i < x; i++) a[i] = 0;
    len = x;
  }
  poly operator+(const poly &b) const {
    poly c = poly();
    c.resize(max(len, b.len));
    for (int i = 0; i < len; i++) c.a[i] = a[i];
    for (int i = 0; i < b.len; i++) (c.a[i] += b.a[i]) %= 998244353;
    return c;
  }
  poly operator-(const poly &b) const {
    poly c = poly();
    c.resize(max(len, b.len));
    for (int i = 0; i < len; i++) c.a[i] = a[i];
    for (int i = 0; i < b.len; i++) (c.a[i] -= b.a[i]) %= 998244353;
    return c;
  }
  poly operator*(const poly &b) const {
    poly c = poly();
    c.resize(len + b.len - 1);
    if (c.len <= 500) {
      for (int i = 0; i < len; i++)
        for (int j = 0; j < b.len; j++)
          c.a[i + j] = (c.a[i + j] + (long long)a[i] * b.a[j]) % 998244353;
      return c;
    }
    int n = 1;
    while (n < c.len) n <<= 1;
    for (int i = 0; i < len; i++) A[i] = a[i];
    for (int i = len; i < n; i++) A[i] = 0;
    for (int i = 0; i < b.len; i++) B[i] = b.a[i];
    for (int i = b.len; i < n; i++) B[i] = 0;
    NTT(A, n, 1), NTT(B, n, 1);
    for (int i = 0; i < n; i++) A[i] = (long long)A[i] * B[i] % 998244353;
    NTT(A, n, -1);
    for (int i = 0; i < c.len; i++) c.a[i] = A[i];
    return c;
  }
};
int head[100005], cnt;
struct node {
  int to, next;
} e[100005 << 1];
void add(int x, int y) {
  e[cnt] = (node){y, head[x]};
  head[x] = cnt++;
}
int siz[100005], ch[100005][2];
void dfs(int x, int from) {
  int now = 0;
  siz[x] = 1;
  for (int i = head[x]; i != -1; i = e[i].next) {
    int to1 = e[i].to;
    if (to1 != from) ch[x][now++] = to1, dfs(to1, x), siz[x] += siz[to1];
  }
  if (siz[ch[x][0]] < siz[ch[x][1]]) swap(ch[x][0], ch[x][1]);
}
vector<poly> v[100005];
pair<poly, poly> solve(int pos, int l, int r) {
  if (l == r) return make_pair(v[pos][l] + poly(1, 0), v[pos][l]);
  int m = (l + r) >> 1;
  pair<poly, poly> L = solve(pos, l, m), R = solve(pos, m + 1, r);
  return make_pair((L.first - poly(1, 0)) * R.second + R.first,
                   L.second * R.second);
}
poly solve(int x, int top) {
  if (ch[x][0]) solve(ch[x][0], top);
  if (ch[x][1])
    v[top].push_back(solve(ch[x][1], ch[x][1]) * poly(0, 1));
  else
    v[top].push_back(poly(0, 1));
  if (x == top) return solve(top, 0, v[top].size() - 1).first;
  return poly();
}
int main() {
  scanf("%d%lld", &n, &X);
  memset(head, -1, sizeof(head));
  for (int i = 1, x, y; i < n; i++) scanf("%d%d", &x, &y), add(x, y), add(y, x);
  dfs(1, 0);
  poly ret = solve(1, 1);
  X %= 998244353;
  int C = 1;
  for (int i = 1; i <= n && i < ret.len; i++)
    ans = (ans + (long long)C * ret.a[i]) % 998244353,
    C = (long long)C * q_pow(i, 998244353 - 2) % 998244353 * (X + i) %
        998244353;
  printf("%d\n", (ans + 998244353) % 998244353);
}