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>
int ad(int a, int b) {
  a += b;
  if (a >= 998244353) a -= 998244353;
  return a;
}
int dc(int a, int b) {
  a -= b;
  if (a < 0) a += 998244353;
  return a;
}
using namespace std;
long long sz[500010], p[500010], n, iv[500010], ff[500010];
long long k;
vector<long long> a[500010], f[500010], w[20], v[500010];
void add(long long x, long long y) {
  v[x].push_back(y);
  v[y].push_back(x);
}
void dfs(long long x, long long fa) {
  sz[x] = 1;
  for (auto i : v[x])
    if (i != fa) {
      ff[i] = x;
      dfs(i, x);
      sz[x] += sz[i];
      if (sz[p[x]] < sz[i]) p[x] = i;
    }
}
long long vv = 1, rev[500010], len;
long long qp(long long x, long long y) {
  long long r = 1;
  for (; y; y >>= 1, x = 1ll * x * x % 998244353)
    if (y & 1) r = 1ll * r * x % 998244353;
  return r;
}
void init(long long s) {
  vv = 1;
  long long len = 0;
  while (vv <= s) vv *= 2, len++;
  for (long long i = 0; i < vv; i++)
    rev[i] = (rev[i >> 1] >> 1) | ((i & 1) << (len - 1));
}
void gt() {
  for (long long i = 1; i < 20; i++) w[i].resize(1 << (i - 1));
  long long v = qp(3, (998244353 - 1) / (1 << 19));
  w[19][0] = 1;
  for (long long i = 1; i < (1 << 18); i++)
    w[19][i] = 1ll * w[19][i - 1] * v % 998244353;
  for (long long i = 18; i; i--)
    for (long long j = 0; j < (1 << (i - 1)); j++) w[i][j] = w[i + 1][j * 2];
}
void fft(vector<long long> &a, long long t) {
  for (long long i = 0; i < vv; i++)
    if (i < rev[i]) swap(a[i], a[rev[i]]);
  long long l = 1;
  for (long long i = 1; i < vv; i *= 2, l++)
    for (long long r = i * 2, j = 0; j < vv; j += r) {
      for (long long k = 0; k < i; k++) {
        long long tx = a[j + k],
                  ty = (1ll * a[j + i + k] * w[l][k]) % 998244353;
        a[j + k] = ad(tx, ty) % 998244353;
        a[j + i + k] = dc(tx, ty) % 998244353;
      }
    }
  if (t == 1) return;
  reverse(a.begin() + 1, a.end());
  long long iv = qp(vv, 998244353 - 2);
  for (long long i = 0; i < vv; i++) a[i] = 1ll * a[i] * iv % 998244353;
}
vector<long long> operator*(vector<long long> a, vector<long long> b) {
  long long s = a.size() + b.size() - 1;
  init(s);
  a.resize(vv);
  b.resize(vv);
  fft(a, 1);
  fft(b, 1);
  for (long long i = 0; i < vv; i++) a[i] = 1ll * a[i] * b[i] % 998244353;
  fft(a, -1);
  a.resize(s);
  return a;
}
vector<long long> operator+(vector<long long> a, vector<long long> b) {
  long long s = max(a.size(), b.size());
  a.resize(s);
  b.resize(s);
  for (long long i = 0; i < s; i++) a[i] = ad(a[i], b[i]) % 998244353;
  return a;
}
void sol(long long l, long long r, vector<long long> &f, vector<long long> &g) {
  if (l == r) {
    f = g = a[l];
    return;
  }
  long long md = (l + r) / 2;
  vector<long long> a, b, c, d;
  sol(l, md, a, c);
  sol(md + 1, r, b, d);
  f = a * b;
  g = c + a * d;
}
vector<long long> cl(long long x) {
  for (register long long y = x; y; y = p[y]) {
    for (auto i : v[y])
      if (i != ff[y] && i != p[y]) f[y] = cl(i);
    if (f[y].empty()) f[y].push_back(0);
    f[y][0]++;
    f[y].insert(f[y].begin(), 0);
  }
  long long j = 0;
  for (register long long y = x; y; y = p[y]) {
    j++;
    swap(a[j], f[y]);
  }
  vector<long long> a, b;
  sol(1, j, a, b);
  return b;
}
inline char nc() { return getchar(); }
inline long long read() {
  char ch = nc();
  long long sum = 0;
  while (!(ch >= '0' && ch <= '9')) ch = nc();
  while (ch >= '0' && ch <= '9') sum = sum * 10 + ch - 48, ch = nc();
  return sum;
}
signed main() {
  gt();
  cin >> n >> k;
  k %= 998244353;
  iv[0] = iv[1] = 1;
  for (long long i = 2; i <= n; i++)
    iv[i] = 1ll * (998244353 - 998244353 / i) * iv[998244353 % i] % 998244353;
  for (long long i = 1; i < n; i++) {
    long long x, y;
    x = read();
    y = read();
    add(x, y);
  }
  dfs(1, 0);
  vector<long long> r = cl(1);
  long long v = 1, ans = 0;
  for (long long i = 1; i < r.size(); i++) {
    ans = (ans + 1ll * v * r[i] % 998244353) % 998244353;
    v = 1ll * (1ll * (v * ((k + i) % 998244353))) % 998244353 * iv[i] %
        998244353;
  }
  cout << ans;
}