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;
long long read() {
  char ch;
  for (ch = getchar(); ch < '0' || ch > '9'; ch = getchar())
    ;
  long long x = ch - '0';
  for (ch = getchar(); ch >= '0' && ch <= '9'; ch = getchar())
    x = x * 10 + ch - '0';
  return x;
}
const int N = (1 << 18) + 5, Mo = 998244353;
long long pwr(long long x, long long y) {
  long long z = 1;
  for (; y; y >>= 1, x = x * x % Mo)
    if (y & 1) z = z * x % Mo;
  return z;
}
vector<long long> a[N];
namespace Poly {
int rev[N];
long long W[2][N];
void pre(int N) {
  for (int i = 1; i < N; i <<= 1) {
    long long wn = pwr(3, (Mo - 1) / (i << 1));
    for (int j = 0; j < i; j++) W[1][i + j] = j ? W[1][i + j - 1] * wn % Mo : 1;
    wn = pwr(3, Mo - 1 - (Mo - 1) / (i << 1));
    for (int j = 0; j < i; j++) W[0][i + j] = j ? W[0][i + j - 1] * wn % Mo : 1;
  }
}
void DFT(vector<long long> &a, int len, int fg) {
  for (int i = 0; i < len; i++)
    if (i < rev[i]) swap(a[i], a[rev[i]]);
  for (int i = 1; i < len; i <<= 1)
    for (int j = 0; j < len; j += i << 1)
      for (int k = 0; k < i; k++) {
        long long u = a[j + k], v = a[j + k + i] * W[fg][i + k];
        a[j + k] = (u + v) % Mo;
        a[j + k + i] = (u - v) % Mo;
      }
  if (!fg) {
    long long inv = pwr(len, Mo - 2);
    for (int i = 0; i < len; i++) a[i] = a[i] * inv % Mo;
  }
}
vector<long long> operator*(vector<long long> a, vector<long long> b) {
  int n = a.size(), m = b.size(), len = 1, lg = 0;
  for (; len < n + m; len <<= 1) lg++;
  for (int i = 0; i <= len - 1; i++)
    rev[i] = rev[i >> 1] >> 1 | ((i & 1) << lg - 1);
  a.resize(len);
  b.resize(len);
  DFT(a, len, 1);
  DFT(b, len, 1);
  for (int i = 0; i <= len - 1; i++) a[i] = a[i] * b[i] % Mo;
  DFT(a, len, 0);
  a.resize(n + m - 1);
  return a;
}
vector<long long> operator+(vector<long long> a, vector<long long> b) {
  int n = max(a.size(), b.size());
  a.resize(n);
  b.resize(n);
  for (int i = 0; i <= n - 1; i++) (a[i] += b[i]) %= Mo;
  return a;
}
void solve(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;
  solve(l, mid, Fl, Gl);
  solve(mid + 1, r, Fr, Gr);
  F = Fl * Fr;
  G = Gl + Fl * Gr;
}
}  // namespace Poly
int t[N << 1], nxt[N << 1], lst[N], l;
void add(int x, int y) {
  t[++l] = y;
  nxt[l] = lst[x];
  lst[x] = l;
}
int n, S;
int sz[N], son[N], fa[N];
void dfs(int x, int y) {
  sz[x] = 1;
  fa[x] = y;
  for (int i = lst[x]; i; i = nxt[i])
    if (t[i] != y) {
      dfs(t[i], x);
      sz[x] += sz[t[i]];
      if (sz[t[i]] > sz[son[x]]) son[x] = t[i];
    }
}
vector<long long> f[N];
void calc(int x) {
  for (int i = lst[x]; i; i = nxt[i])
    if (t[i] != fa[x]) calc(t[i]);
  int k = 0;
  for (int i = lst[x]; i; i = nxt[i])
    if (t[i] != fa[x] && t[i] != son[x]) {
      a[++k] = f[t[i]];
      a[k][0]++;
    }
  vector<long long> T;
  if (k) {
    Poly::solve(1, k, f[x], T);
    f[x].insert(f[x].begin(), 0);
  } else
    f[x].push_back(0), f[x].push_back(1);
  if (son[fa[x]] != x) {
    k = 0;
    for (int z = x; z; z = son[z]) a[++k] = f[z];
    Poly::solve(1, k, T, f[x]);
  }
}
int main() {
  Poly::pre(1 << 18);
  n = read();
  S = read() % Mo;
  for (int i = 1; i <= n - 1; i++) {
    int x = read(), y = read();
    add(x, y);
    add(y, x);
  }
  dfs(1, 0);
  calc(1);
  long long C = 1, ans = 0;
  for (int i = 1; i <= (int)f[1].size() - 1; i++) {
    (ans += f[1][i] * C) %= Mo;
    C = C * (S + i) % Mo * pwr(i, Mo - 2) % Mo;
  }
  printf("%lld\n", (ans + Mo) % Mo);
  return 0;
}