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>
#pragma GCC optimize(3)
using namespace std;
inline long long ksm(long long x, long long y) {
  long long ret = 1;
  for (; y; y >>= 1, x = x * x % 998244353)
    if (y & 1) ret = ret * x % 998244353;
  return ret;
}
struct poly {
  vector<long long> a;
  int len;
} tmp[270000], ggg, eee;
vector<int> son[270000];
struct node {
  vector<poly> a;
  int len;
} f[270000], AA;
struct POLY {
  poly f1, f2;
};
int r[270000], mx, size[270000];
long long F[270000], G[270000];
inline void getr(int len) {
  for (int i = 1; i < len; ++i) r[i] = r[i >> 1] >> 1 | ((i & 1) * len >> 1);
}
inline void NTT(long long *f, int typ) {
  int i, j, k, rr;
  long long x, y, w, W;
  for (i = 2; i < mx; ++i)
    if (r[i] < i) swap(f[i], f[r[i]]);
  for (i = 1; i < mx; i <<= 1) {
    rr = i << 1;
    W = ksm(3, 998244353 - 1 + typ * (998244353 - 1) / rr);
    for (j = 0; j < mx; j += rr) {
      for (k = 0, w = 1; k < i; w = w * W % 998244353, ++k) {
        x = f[j | k], y = f[i | j | k] * w;
        f[j | k] = (x + y) % 998244353, f[i | j | k] = (x - y) % 998244353;
      }
    }
  }
  if (typ == -1)
    for (i = 0, w = ksm(mx, 998244353 - 2); i < mx; ++i)
      (f[i] *= w) %= 998244353;
}
inline poly operator*(poly aa, poly bb) {
  struct poly ret;
  ret.a.clear();
  ret.len = aa.len + bb.len;
  mx = 1;
  while (mx <= ret.len) mx <<= 1;
  int i;
  for (i = 0; i <= aa.len; ++i) F[i] = aa.a[i];
  for (; i < mx; ++i) F[i] = 0;
  for (i = 0; i <= bb.len; ++i) G[i] = bb.a[i];
  for (; i < mx; ++i) G[i] = 0;
  getr(mx);
  NTT(F, 1);
  NTT(G, 1);
  for (i = 0; i < mx; ++i) F[i] = F[i] * G[i] % 998244353;
  NTT(F, -1);
  for (i = 0; i <= ret.len; ++i) ret.a.push_back(F[i]);
  return ret;
}
inline poly operator+(poly aa, poly bb) {
  if (aa.len < bb.len) {
    for (int i = 0; i <= aa.len; ++i) bb.a[i] += aa.a[i];
    return bb;
  } else {
    for (int i = 0; i <= bb.len; ++i) aa.a[i] += bb.a[i];
    return aa;
  }
}
inline POLY operator*(POLY aa, POLY bb) {
  struct POLY ret;
  ret.f1 = aa.f1 * bb.f2 + bb.f1;
  ret.f2 = aa.f2 * bb.f2;
  return ret;
}
POLY SOLVE(int L, int R) {
  if (L == R) {
    struct POLY ret;
    ret.f1 = ret.f2 = AA.a[L];
    return ret;
  }
  return SOLVE(L, (L + R >> 1)) * SOLVE((L + R >> 1) + 1, R);
}
poly get(node aa) {
  AA = aa;
  struct poly ret = SOLVE(0, aa.len - 1).f1, rr;
  ++ret.a[0];
  rr.len = ret.len + 1;
  rr.a.push_back(0);
  for (int i = 0; i <= ret.len; ++i) rr.a.push_back(ret.a[i]);
  rr.len = ret.len + 1;
  return rr;
}
void dfs(int now, int fat) {
  int sz = son[now].size() - (now != 1);
  size[now] = 1;
  if (!sz) {
    f[now].len = 1;
    f[now].a.push_back(ggg);
    return;
  }
  if (sz == 1) {
    for (int T, i = 0; i < son[now].size(); ++i) {
      if ((T = son[now][i]) != fat) {
        dfs(T, now);
        swap(f[now], f[T]);
        f[now].a.push_back(ggg);
        ++f[now].len;
        size[now] += size[T];
      }
    }
  } else {
    int t1, t2;
    t1 = t2 = 0;
    for (int T, i = 0; i < son[now].size(); ++i) {
      if ((T = son[now][i]) != fat) {
        dfs(T, now);
        if (!t1)
          t1 = T;
        else
          t2 = T;
        size[now] += size[T];
      }
    }
    if (size[t1] < size[t2]) swap(t1, t2);
    swap(f[now], f[t1]);
    f[now].a.push_back(get(f[t2]));
    ++f[now].len;
    size[now] = size[t1] + size[t2];
  }
}
int n, i, X, Y;
long long x, ans, now;
int main() {
  cin >> n >> x;
  x %= 998244353;
  for (i = 1; i < n; ++i)
    cin >> X >> Y, son[X].push_back(Y), son[Y].push_back(X);
  ggg.len = 1;
  ggg.a.push_back(0);
  ggg.a.push_back(1);
  eee.len = 0;
  eee.a.push_back(1);
  dfs(1, 0);
  ggg = get(f[1]);
  now = 1;
  for (i = 2; i <= n + 1; ++i) {
    (ans += now * ggg.a[i]) %= 998244353;
    now = now * (x + i - 1) % 998244353 * ksm(i - 1, 998244353 - 2) % 998244353;
  }
  cout << (ans + 998244353) % 998244353;
}