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 oo = 0x3f3f3f3f;
const long long ooo = 9223372036854775807ll;
const int _cnt = 1000 * 1000 + 7;
const int _p = 998244353;
const int N = 100005, M = (1 << 18) + 25;
const double PI = acos(-1.0);
const double eps = 1e-9;
int o(int x) { return x % _p; }
int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
int lcm(int a, int b) { return a / gcd(a, b) * b; }
void file_put() {
  freopen("filename.in", "r", stdin);
  freopen("filename.out", "w", stdout);
}
inline void add(int &x, int y) {
  x += y;
  if (x >= _p) x -= _p;
}
inline int Pow(int x, int k) {
  int res = 1;
  for (; k; k >>= 1, x = (long long)x * x % _p)
    if (k & 1) res = (long long)res * x % _p;
  return res;
}
int w[M];
inline vector<int> add(vector<int> a, vector<int> b) {
  if (((a).size()) < ((b).size())) a.swap(b);
  for (int i = (0); i <= (((b).size()) - 1); ++i) add(a[i], b[i]);
  return a;
}
inline void fft(int *a, int n, int op) {
  for (int i = 1, j = 0; i < n; i++) {
    for (int k = n >> 1; !((j ^= k) & k); k >>= 1)
      ;
    if (i < j) swap(a[i], a[j]);
  }
  for (int j = 2; j <= n; j <<= 1) {
    w[0] = 1, w[1] = Pow(3, (_p - 1) / j);
    if (op == -1) w[1] = Pow(w[1], _p - 2);
    for (int i = (2); i <= ((j >> 1) - 1); ++i)
      w[i] = (long long)w[i - 1] * w[1] % _p;
    for (int k = 0; k < n; k += j)
      for (int i = (0); i <= ((j >> 1) - 1); ++i) {
        int x = a[k + i], y = (long long)w[i] * a[k + i + (j >> 1)] % _p;
        a[k + i] = x + y < _p ? x + y : x + y - _p;
        a[k + i + (j >> 1)] = x - y >= 0 ? x - y : x - y + _p;
      }
  }
}
inline vector<int> mul(vector<int> a, vector<int> b) {
  vector<int> c;
  int n;
  if ((long long)((a).size()) * ((b).size()) <= 6000) {
    c.resize(((a).size()) + ((b).size()) - 1);
    for (int i = (0); i <= (((a).size()) - 1); ++i)
      for (int j = (0); j <= (((b).size()) - 1); ++j)
        c[i + j] = (c[i + j] + (long long)a[i] * b[j]) % _p;
    return c;
  }
  for (n = 1; n <= ((a).size()) + ((b).size()) - 1; n <<= 1)
    ;
  static int f[M], g[M];
  for (int i = (0); i <= (((a).size()) - 1); ++i) f[i] = a[i];
  for (int i = (((a).size())); i <= (n - 1); ++i) f[i] = 0;
  for (int i = (0); i <= (((b).size()) - 1); ++i) g[i] = b[i];
  for (int i = (((b).size())); i <= (n - 1); ++i) g[i] = 0;
  fft(f, n, 1), fft(g, n, 1);
  for (int i = (0); i <= (n - 1); ++i) f[i] = (long long)f[i] * g[i] % _p;
  fft(f, n, -1);
  int n_ = Pow(n, _p - 2);
  for (int i = (0); i <= (((a).size()) + ((b).size()) - 1); ++i)
    c.push_back((long long)n_ * f[i] % _p);
  return c;
}
vector<int> E[N], a[N], p[N], ret;
int n, x, y, fa[N], son[N], s[N];
long long m, ans = 0, C = 1;
void dfs(int x, int F) {
  s[x] = 1, fa[x] = F;
  for (auto y : E[x])
    if (y != F) {
      dfs(y, x), s[x] += s[y];
      if (s[y] > s[son[x]]) son[x] = y;
    }
}
void solve(int l, int r, vector<int> &f, vector<int> &g) {
  if (l == r) {
    f = g = a[l];
    return;
  }
  int mid = l + r >> 1;
  vector<int> fl, fr, gl, gr;
  solve(l, mid, fl, gl), solve(mid + 1, r, fr, gr);
  f = mul(fl, fr), g = add(mul(fl, gr), gl);
}
vector<int> dfs2(int x, int F) {
  for (int t = x; t; t = son[t]) {
    p[t].clear();
    for (auto y : E[t])
      if (y != fa[t] && y != son[t]) p[t] = dfs2(y, t);
    if (p[t].empty()) p[t].push_back(0);
    p[t][0]++, p[t].insert(p[t].begin(), 0);
  }
  int k = 0;
  for (int t = x; t; t = son[t]) a[++k].swap(p[t]);
  vector<int> f, g;
  solve(1, k, f, g);
  return g;
}
int main() {
  scanf("%d%lld", &n, &m), m %= _p;
  for (int i = (1); i <= (n - 1); ++i)
    scanf("%d%d", &x, &y), E[x].push_back(y), E[y].push_back(x);
  dfs(1, 0), ret = dfs2(1, 0);
  for (int i = (1); i <= (((ret).size()) - 1); ++i)
    ans += C * ret[i] % _p, C = C * (m + i) % _p * Pow(i, _p - 2) % _p;
  printf("%lld\n", ans % _p);
  return 0;
}