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 mod = 998244353, N = 4e5 + 10;
long long n, Rt, ans, inv[N];
int r[N], sz[N], lim, son[N], fa[N];
vector<int> g[N];
vector<long long> a[N], f[N];
void Add(long long &x, long long y) { x = (x + y) % mod; }
long long add(long long x, long long y) { return (x + y) % mod; }
void Mul(long long &x, long long y) { x = x * y % mod; }
long long mul(long long x, long long y) { return x * y % mod; }
void Sub(long long &x, long long y) { x = (x - y + mod) % mod; }
long long sub(long long x, long long y) { return (x - y + mod) % mod; }
long long qpow(long long a, long long b) {
  long long ret = 1;
  for (; b; b >>= 1, Mul(a, a))
    if (b & 1) Mul(ret, a);
  return ret;
}
void TNT(vector<long long> &a, int op) {
  for (int i = 1; i <= lim - 1; i++)
    if (i < r[i]) swap(a[i], a[r[i]]);
  for (int mid = 1; mid < lim; mid <<= 1) {
    long long W = qpow(op == 1 ? 3 : (mod + 1) / 3, (mod - 1) / (mid << 1));
    for (int j = 0; j < lim; j += (mid << 1)) {
      long long w = 1;
      for (int k = 0; k < mid; ++k, Mul(w, W)) {
        long long x = a[j + k], y = mul(w, a[j + k + mid]);
        a[j + k] = add(x, y), a[j + k + mid] = sub(x, y);
      }
    }
  }
  if (op == -1) {
    long long Inv = qpow(lim, mod - 2);
    for (int i = 0; i <= lim - 1; i++) Mul(a[i], Inv);
  }
}
vector<long long> operator*(vector<long long> a, vector<long long> b) {
  int t = a.size() + b.size() - 1;
  lim = 1;
  while (lim <= t) lim <<= 1;
  for (int i = 0; i <= lim - 1; i++)
    r[i] = (r[i >> 1] >> 1) | ((i & 1) * (lim >> 1));
  a.resize(lim), b.resize(lim);
  TNT(a, 1), TNT(b, 1);
  for (int i = 0; i <= lim - 1; i++) Mul(a[i], b[i]);
  TNT(a, -1);
  a.resize(t);
  return a;
}
vector<long long> operator+(vector<long long> a, vector<long long> b) {
  int t = max(a.size(), b.size());
  a.resize(t), b.resize(t);
  for (int i = 0; i <= t - 1; i++) Add(a[i], b[i]);
  return a;
}
void dfs(int x, int fat) {
  sz[x] = 1;
  fa[x] = fat;
  for (int i = 0; i < g[x].size(); i++) {
    int y = g[x][i];
    if (y == fat) continue;
    dfs(y, x);
    sz[x] += sz[y];
    if (sz[son[x]] < sz[y]) son[x] = y;
  }
}
void calc(int l, int r, vector<long long> &F, vector<long long> &G) {
  if (l == r) {
    F = G = a[l];
    return;
  }
  int mid = (l + r) >> 1;
  vector<long long> Fl, Fr, Gl, Gr;
  calc(l, mid, Fl, Gl), calc(mid + 1, r, Fr, Gr);
  F = Fl * Fr;
  G = Gl + Fl * Gr;
}
vector<long long> solve(int u) {
  for (int x = u; x; x = son[x]) {
    for (int i = 0; i < g[x].size(); i++)
      if (g[x][i] != fa[x] && g[x][i] != son[x]) f[x] = solve(g[x][i]);
    if (!f[x].size()) f[x].push_back(0);
    ++f[x][0];
    f[x].insert(f[x].begin(), 0);
  }
  int top = 0;
  for (int x = u; x; x = son[x]) swap(a[++top], f[x]);
  vector<long long> F, G;
  calc(1, top, F, G);
  return G;
}
int main() {
  cin >> n >> Rt;
  inv[0] = inv[1] = 1;
  for (int i = 2; i <= n; i++) inv[i] = mul(mod - mod / i, inv[mod % i]);
  int x, y;
  for (int i = 1; i <= n - 1; i++)
    scanf("%d%d", &x, &y), g[x].push_back(y), g[y].push_back(x);
  dfs(1, 0);
  vector<long long> F = solve(1);
  long long c = 1;
  for (int i = 1; i < F.size(); i++) {
    Add(ans, mul(F[i], c));
    Mul(c, mul(add(Rt, i), inv[i]));
  }
  printf("%lld\n", ans);
  return 0;
}