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;
using LL = long long;
namespace _buff {
const size_t BUFF = 1 << 19;
char buff[BUFF], *begin = buff, *end = buff;
char getc() {
  if (begin == end) {
    begin = buff;
    end = buff + fread(buff, 1, BUFF, stdin);
  }
  return begin == end ? -1 : *begin++;
}
}  // namespace _buff
LL read() {
  using namespace _buff;
  LL ret = 0;
  bool pos = true;
  char c = getc();
  for (; (c < '0' || c > '9') && c != '-'; c = getc()) {
    assert(~c);
  }
  if (c == '-') {
    pos = false;
    c = getc();
  }
  for (; c >= '0' && c <= '9'; c = getc()) {
    ret = (ret << 3) + (ret << 1) + (c ^ 48);
  }
  return pos ? ret : -ret;
}
const size_t N = 1 << 19;
const int MOD = 998244353;
const int ROOT = 3;
int qpow(int base, int e) {
  int ret = 1;
  for (; e; e >>= 1) {
    if (e & 1) ret = 1LL * ret * base % MOD;
    base = 1LL * base * base % MOD;
  }
  return ret;
}
int rmod(int x) {
  if (x >= MOD) x -= MOD;
  if (x < 0) x += MOD;
  return x;
}
void fft(int a[], int lg, int flag) {
  static int rev[N], rev_lg = -1;
  int n = 1 << lg;
  if (lg != rev_lg) {
    for (int i = 0; i < n; ++i) {
      rev[i] = rev[i >> 1] >> 1 | ((i & 1) << (lg - 1));
    }
  }
  for (int i = 0; i < n; ++i) {
    if (i < rev[i]) swap(a[i], a[rev[i]]);
  }
  for (int m = 1, l = 2; m < n; m <<= 1, l <<= 1) {
    int wn = qpow(ROOT, flag ? (MOD - 1) - (MOD - 1) / l : (MOD - 1) / l);
    for (int i = 0, j, w, x, y; i < n; i += l) {
      for (j = 0, w = 1; j < m; ++j, w = 1LL * w * wn % MOD) {
        x = a[i + j];
        y = 1LL * w * a[i + j + m] % MOD;
        a[i + j] = rmod(x + y);
        a[i + j + m] = rmod(x - y);
      }
    }
  }
  if (flag) {
    int inv = qpow(n, MOD - 2);
    for (int i = 0; i < n; ++i) {
      a[i] = 1LL * a[i] * inv % MOD;
    }
  }
}
vector<int> operator*(const vector<int> &a, const vector<int> &b) {
  static int aa[N], bb[N], cc[N];
  int n = a.size(), m = b.size(), l = n + m - 1, lg = 0;
  vector<int> ans(l);
  if (static_cast<LL>(n) * m <= 4096) {
    static unsigned long long tmp[N];
    for (int i = 0; i < n; ++i) {
      for (int j = 0; j < m; ++j) {
        if ((tmp[i + j] += static_cast<unsigned long long>(a[i]) * b[j]) >>
            62) {
          tmp[i + j] %= MOD;
        }
      }
    }
    for (int i = 0; i < l; ++i) {
      ans[i] = tmp[i] % MOD;
      tmp[i] = 0;
    }
    return ans;
  }
  for (; (1 << lg) < l; ++lg) {
  }
  memset(aa, 0, sizeof(int) << lg);
  copy(a.begin(), a.end(), aa);
  fft(aa, lg, 0);
  memset(bb, 0, sizeof(int) << lg);
  copy(b.begin(), b.end(), bb);
  fft(bb, lg, 0);
  for (int i = 0, _ = 1 << lg; i < _; ++i) {
    cc[i] = 1LL * aa[i] * bb[i] % MOD;
  }
  fft(cc, lg, 1);
  copy(cc, cc + l, ans.begin());
  return ans;
}
vector<int> operator+(const vector<int> &a, const vector<int> &b) {
  const vector<int> &aa = a.size() > b.size() ? a : b;
  const vector<int> &bb = a.size() > b.size() ? b : a;
  vector<int> ret(aa);
  auto it = ret.begin();
  auto jt = bb.begin();
  for (; jt != bb.end(); ++it, ++jt) {
    *it = rmod(*it + *jt);
  }
  return ret;
}
vector<int> g[N];
int pa[N], dep[N], nxt[N], sz[N];
void dfs1(int u) {
  sz[u] = 1;
  for (int v : g[u]) {
    if (v == pa[u]) continue;
    pa[v] = u;
    dep[v] = dep[u] + 1;
    dfs1(v);
    sz[u] += sz[v];
    if (sz[v] > sz[nxt[u]]) nxt[u] = v;
  }
}
vector<int> polys[N];
pair<vector<int>, vector<int> > solve(const vector<int> &idx, int l, int r) {
  if (l + 1 == r) {
    return {polys[idx[l]], polys[idx[l]]};
  }
  int mid = (l + r) >> 1;
  auto ans1 = solve(idx, l, mid), ans2 = solve(idx, mid, r);
  return {ans1.first + ans2.first * ans1.second, ans1.second * ans2.second};
}
void dfs2(int u) {
  assert(!pa[u] || nxt[pa[u]] != u);
  vector<int> idx(1, u);
  for (int v = nxt[u]; v; v = nxt[v]) {
    idx.emplace_back(v);
  }
  for (int u : idx) {
    polys[u] = {0, 1};
    for (int v : g[u]) {
      if (v == pa[u] || v == nxt[u]) continue;
      dfs2(v);
      polys[v][0] += 1;
      polys[u] = polys[u] * polys[v];
    }
  }
  polys[u] = solve(idx, 0, idx.size()).first;
}
int main() {
  int n = read();
  LL x = read();
  for (int i = 1, a, b; i < n; ++i) {
    a = read();
    b = read();
    g[a].emplace_back(b);
    g[b].emplace_back(a);
  }
  dfs1(1);
  dfs2(1);
  vector<int> &vc = polys[1];
  int ans = 0, mul = 1;
  for (unsigned i = 1; i < vc.size(); ++i) {
    ans = (ans + 1LL * mul * vc[i]) % MOD;
    mul = (x + i) % MOD * qpow(i, MOD - 2) % MOD * mul % MOD;
  }
  printf("%d\n", ans);
  return 0;
}