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 gi() {
  int x = 0, f = 1;
  char ch = getchar();
  while (!isdigit(ch)) {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (isdigit(ch)) {
    x = (x << 3) + (x << 1) + ch - 48;
    ch = getchar();
  }
  return x * f;
}
template <typename T>
inline void Max(T &a, T b) {
  if (a < b) a = b;
}
template <typename T>
inline void Min(T &a, T b) {
  if (a > b) a = b;
}
const int N = 1e5 + 7, mod = 998244353;
int n, edc, len;
int head[N];
long long tot, ans;
struct edge {
  int lst, to;
  edge() {}
  edge(int lst, int to) : lst(lst), to(to) {}
} e[N * 2];
void Add(int a, int b) {
  e[++edc] = edge(head[a], b), head[a] = edc;
  e[++edc] = edge(head[b], a), head[b] = edc;
}
void add(long long &a, long long b) {
  a += b;
  if (a >= mod) a -= mod;
}
long long Pow(long long a, long long b) {
  long long res = 1ll;
  for (; b; b >>= 1, a = a * a % mod)
    if (b & 1) res = res * a % mod;
  return res;
}
long long Inv(long long a) { return Pow(a, mod - 2); }
vector<long long> f[N], tmp[N];
void ntt(long long *c, int n, int f) {
  for (int i = 0, j = 0; i < n; ++i) {
    if (i > j) swap(c[i], c[j]);
    for (int k = n >> 1; (j ^= k) < k; k >>= 1)
      ;
  }
  for (int i = 1; i < n; i <<= 1) {
    long long wn = Pow(3, (mod - 1) / (i << 1));
    if (f == -1) wn = Inv(wn);
    for (int j = 0; j < n; j += i << 1) {
      long long w = 1ll;
      for (int k = 0; k < i; ++k, w = w * wn % mod) {
        long long x = c[j + k], y = w * c[j + k + i] % mod;
        c[j + k] = (x + y) % mod;
        c[j + k + i] = (x - y + mod) % mod;
      }
    }
  }
  if (f == -1) {
    long long inv = Inv(n);
    for (int i = 0; i < n; ++i) c[i] = c[i] * inv % mod;
  }
}
long long aa[N << 2], bb[N << 2];
vector<long long> operator*(vector<long long> a, vector<long long> b) {
  int num = a.size() + b.size() - 2;
  for (len = 1; len <= num; len <<= 1)
    ;
  fill(aa, aa + len, 0);
  fill(bb, bb + len, 0);
  for (int i = 0; i < a.size(); ++i) aa[i] = a[i];
  for (int i = 0; i < b.size(); ++i) bb[i] = b[i];
  ntt(aa, len, 1);
  ntt(bb, len, 1);
  for (int i = 0; i < len; ++i) aa[i] = aa[i] * bb[i] % mod;
  ntt(aa, len, -1);
  vector<long long> c;
  for (int i = 0; i <= num; ++i) c.push_back(aa[i]);
  return c;
}
vector<long long> operator+(vector<long long> a, vector<long long> b) {
  int num = max(a.size(), b.size());
  vector<long long> c;
  c.resize(num);
  for (int i = 0; i < num; ++i) {
    if (i < a.size()) c[i] = (c[i] + a[i]) % mod;
    if (i < b.size()) c[i] = (c[i] + b[i]) % mod;
  }
  return c;
}
pair<vector<long long>, vector<long long> > solve(int l, int r) {
  if (l == r) return make_pair(tmp[l], tmp[l]);
  int mid = l + r >> 1;
  pair<vector<long long>, vector<long long> > L = solve(l, mid),
                                              R = solve(mid + 1, r);
  return make_pair(L.first * R.first, L.second + (L.first * R.second));
}
int fa[N], top[N], zson[N], son[N], vn[N], vc;
void dfs1(int u) {
  son[u] = 1;
  for (int i = head[u], v = e[i].to; i; i = e[i].lst, v = e[i].to)
    if (v ^ fa[u]) {
      fa[v] = u;
      dfs1(v);
      son[u] += son[v];
      if (son[v] > son[zson[u]]) zson[u] = v;
    }
}
void dfs2(int u) {
  for (int x = u; x; x = zson[x])
    for (int i = head[x], v = e[i].to; i; i = e[i].lst, v = e[i].to)
      if (v ^ fa[x] && v ^ zson[x]) dfs2(v);
  vc = 0;
  for (int x = u; x; x = zson[x]) vn[++vc] = x;
  if (u == 1)
    tmp[0] = {1, 0};
  else
    tmp[0] = {0, 1};
  for (int i = 1; i <= vc; ++i) {
    int x = vn[i];
    tmp[i] = {0, 1};
    for (int j = head[x], v = e[j].to; j; j = e[j].lst, v = e[j].to)
      if (v ^ fa[x] && v ^ zson[x]) tmp[i] = f[v];
  }
  f[u] = solve(0, vc).second;
}
int main() {
  scanf("%d%lld", &n, &tot);
  tot %= mod;
  for (int i = 1; i <= n - 1; ++i) Add(gi(), gi());
  dfs1(1), dfs2(1);
  long long gg = 1;
  for (int i = 1; i <= n; ++i) {
    if (i ^ 1) gg = gg * (tot + i - 1) % mod * Inv(i - 1) % mod;
    add(ans, f[1][i] * gg % mod);
  }
  printf("%lld\n", ans);
  return 0;
}