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 Imx = 2147483647;
const long long Lbig = 2e18;
struct fastio {
  char s[100000];
  int it, len;
  fastio() { it = len = 0; }
  inline char get() {
    if (it < len) return s[it++];
    it = 0;
    len = fread(s, 1, 100000, stdin);
    if (len == 0)
      return EOF;
    else
      return s[it++];
  }
  bool notend() {
    char c = get();
    while (c == ' ' || c == '\n') c = get();
    if (it > 0) it--;
    return c != EOF;
  }
} _buff;
inline long long getnum() {
  long long r = 0;
  bool ng = 0;
  char c;
  c = _buff.get();
  while (c != '-' && (c < '0' || c > '9')) c = _buff.get();
  if (c == '-') ng = 1, c = _buff.get();
  while (c >= '0' && c <= '9') r = r * 10 + c - '0', c = _buff.get();
  return ng ? -r : r;
}
template <class T>
inline void putnum(T x) {
  if (x < 0) putchar('-'), x = -x;
  register short a[20] = {}, sz = 0;
  while (x) a[sz++] = x % 10, x /= 10;
  if (sz == 0) putchar('0');
  for (int i = sz - 1; i >= 0; i--) putchar('0' + a[i]);
}
inline char getreal() {
  char c = _buff.get();
  while (c <= 32) c = _buff.get();
  return c;
}
const int mod = 998244353;
long long qpow(long long x, long long k) {
  return k == 0 ? 1
                : 1ll * qpow(1ll * x * x % mod, k >> 1) * (k & 1 ? x : 1) % mod;
}
const int proot = 3;
const int FFTbitn = 18;
const int FFTpmx = 1 << FFTbitn;
const int FFTmx = FFTpmx + 233;
int w_pre[FFTmx], fsz;
void FFTprecalc() {
  w_pre[0] = 1;
  int ww = qpow(proot, (mod - 1) / FFTpmx);
  for (int i = 1; i <= FFTpmx; i++) w_pre[i] = 1ll * w_pre[i - 1] * ww % mod;
}
void FFTinit(int sz) {
  fsz = 1;
  while (fsz < sz) fsz <<= 1;
  assert(fsz <= FFTpmx);
}
void FFT(int a[], int coef) {
  static unsigned long long f_a[FFTmx];
  static int w[FFTmx];
  for (int i = 0, j = 0; i < fsz; i++) {
    f_a[j] = a[i] < 0 ? a[i] + mod : a[i];
    for (int l = fsz >> 1; (j ^= l) < l; l >>= 1)
      ;
  }
  const unsigned long long md2 = 1ull * mod * mod;
  for (int l = 1; l < fsz; l <<= 1) {
    int l2 = l << 1, u = FFTpmx / l2;
    if (coef == 1)
      for (int j = 0, j2 = 0; j < l; j++, j2 += u) w[j] = w_pre[j2];
    else
      for (int j = 0, j2 = FFTpmx; j < l; j++, j2 -= u) w[j] = w_pre[j2];
    for (int i = 0; i < fsz; i += l2) {
      for (int j = 0; j < l; j++) {
        unsigned long long tmp = f_a[i + j + l] % mod * w[j];
        f_a[i + j + l] = f_a[i + j] + md2 - tmp;
        f_a[i + j] += tmp;
      }
    }
    if (l == (1 << 16))
      for (int j = 0; j < fsz; j++) f_a[j] %= mod;
  }
  for (int i = 0; i < fsz; i++) a[i] = f_a[i] % mod;
  if (coef == -1) {
    int inv = qpow(fsz, mod - 2);
    for (int i = 0; i < fsz; i++) a[i] = 1ll * a[i] * inv % mod;
  }
}
void polymul(int a[], int an, int b[], int bn, int c[], int cn = -1) {
  static int mul_a[FFTmx], mul_b[FFTmx];
  if (cn == -1) cn = an + bn;
  an = min(an, cn);
  bn = min(bn, cn);
  if (1ll * an * bn <= 4096) {
    for (int i = 0; i < an + bn; i++) mul_a[i] = 0;
    for (int i = 0; i < an; i++)
      for (int j = 0; j < bn; j++)
        mul_a[i + j] = (mul_a[i + j] + 1ll * a[i] * b[j]) % mod;
    for (int i = 0; i < cn; i++) c[i] = mul_a[i];
    return;
  }
  FFTinit(an + bn);
  for (int i = 0; i < fsz; i++) mul_a[i] = i < an ? a[i] : 0;
  for (int i = 0; i < fsz; i++) mul_b[i] = i < bn ? b[i] : 0;
  FFT(mul_a, 1);
  FFT(mul_b, 1);
  for (int i = 0; i < fsz; i++) mul_a[i] = 1ll * mul_a[i] * mul_b[i] % mod;
  FFT(mul_a, -1);
  for (int i = 0; i < cn; i++) c[i] = mul_a[i];
}
vector<int> polymul(const vector<int> &a, const vector<int> &b) {
  vector<int> ret;
  if (!a.size() || !b.size()) return ret;
  static int A[FFTmx], B[FFTmx];
  for (int i = 0; i < a.size(); i++) A[i] = a[i];
  for (int i = 0; i < b.size(); i++) B[i] = b[i];
  polymul(A, a.size(), B, b.size(), A);
  for (int i = 0; i < a.size() + b.size() - 1; i++) ret.push_back(A[i]);
  return ret;
}
vector<int> polyadd(const vector<int> &v1, const vector<int> &v2) {
  vector<int> ret;
  for (int i = 0; i < max(v1.size(), v2.size()); i++)
    ret.push_back(((i < v1.size() ? v1[i] : 0) + (i < v2.size() ? v2[i] : 0)) %
                  mod);
  return ret;
}
const int maxn = 100111;
int n;
vector<int> con0[maxn], con[maxn];
int sz[maxn], top[maxn], csz[maxn];
vector<int> F[maxn], G[maxn];
bool cmp_with_size(int x, int y) { return sz[x] > sz[y]; }
void dfs(int x, int pre = -1) {
  sz[x] = 1;
  for (int i = 0; i < con0[x].size(); i++) {
    int u = con0[x][i];
    if (u == pre) continue;
    dfs(u, x);
    sz[x] += sz[u];
    con[x].push_back(u);
  }
  sort(con[x].begin(), con[x].end(), cmp_with_size);
  csz[x] = sz[x];
  if (con[x].size() > 0) csz[x] -= sz[con[x][0]];
}
pair<vector<int>, vector<int> > solve(const vector<int> &v) {
  vector<int> retK, retB;
  if (v.size() == 1) {
    retB.resize(csz[v[0]] + 1);
    retB[csz[v[0]]] = 1;
    return make_pair(G[v[0]], retB);
  }
  int alls = 0;
  for (int i = 0; i < v.size(); i++) alls += csz[v[i]];
  int m = 0, curs = csz[v[0]];
  while (m + 2 < v.size() && curs * 2 <= alls) curs += csz[v[++m]];
  vector<int> v0, v1;
  for (int i = 0; i < v.size(); i++)
    if (i <= m)
      v0.push_back(v[i]);
    else
      v1.push_back(v[i]);
  pair<vector<int>, vector<int> > L = solve(v0), R = solve(v1);
  vector<int> tmp;
  tmp.resize(curs);
  for (int i = 0; i < R.second.size(); i++) tmp.push_back(R.second[i]);
  tmp.swap(R.second);
  retK = polymul(L.first, R.first);
  retB = polyadd(polymul(R.first, L.second), R.second);
  return make_pair(retK, retB);
}
void dfs2(int x, int tp) {
  G[x].clear();
  G[x].push_back(1);
  for (int i = 1; i < con[x].size(); i++) {
    int u = con[x][i];
    dfs2(u, u);
    G[x] = polymul(G[x], F[u]);
  }
  if (con[x].size() > 0) dfs2(con[x][0], tp);
  if (x == tp) {
    vector<int> v;
    int p = x;
    while (true) {
      v.push_back(p);
      if (con[p].size() == 0) break;
      p = con[p][0];
    }
    reverse(v.begin(), v.end());
    pair<vector<int>, vector<int> > pp = solve(v);
    F[x] = polyadd(pp.first, pp.second);
  }
}
int main() {
  FFTprecalc();
  long long K;
  n = getnum(), K = getnum();
  K %= mod;
  for (int i = 1; i < n; i++) {
    int x, y;
    x = getnum(), y = getnum();
    con0[x].push_back(y);
    con0[y].push_back(x);
  }
  dfs(1);
  dfs2(1, 1);
  vector<int> v = F[1];
  assert(v.size() >= n);
  long long cur = 1, ans = 0;
  for (int i = 1; i <= n; i++) {
    ans += cur * v[n - i] % mod;
    cur = cur * (K + i) % mod;
    cur = cur * qpow(i, mod - 2) % mod;
  }
  ans = (ans % mod + mod) % mod;
  cout << ans << endl;
  return 0;
}