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>
const int maxn = 1E5 + 77;
const int mod = 998244353;
const int G = 3;
inline int power(int x, int y) {
  int z = 1;
  for (; y; y >>= 1, x = (long long)x * x % mod)
    if (y & 1) z = (long long)z * x % mod;
  return z;
}
namespace fft {
int len1, len2, n, m, rev[262200], a[262200], b[262200];
inline int power(int x, int y) {
  int z = 1;
  for (; y; y >>= 1, x = (long long)x * x % mod)
    if (y & 1) z = (long long)z * x % mod;
  return z;
}
inline void NTT(int *a, int f) {
  for (int i = 0; i < n; i++)
    if (i < rev[i]) std::swap(a[i], a[rev[i]]);
  for (int i = 1, t = 1; i < n; i <<= 1, t++) {
    int wn = power(G, (mod - 1) / (1 << t));
    if (f == -1) wn = (power(wn, mod - 2));
    for (int j = 0; j < n; j += (i << 1))
      for (int k = 0, w = 1; k < i; k++, w = (long long)w * wn % mod) {
        int x = a[j + k], y = (long long)a[j + k + i] * w % mod;
        a[j + k] = (x + y) % mod;
        a[j + k + i] = (x - y + mod) % mod;
      }
  }
  if (f == -1) {
    long long d = (power(n, mod - 2));
    for (int i = 0; i < n; ++i) a[i] = a[i] * d % mod;
  }
}
}  // namespace fft
std::vector<int> W[maxn];
std::vector<int> V[maxn];
void multiply(std::vector<int> &a, std::vector<int> &b) {
  for (fft::n = 1, fft::m = 0; fft::n <= a.size() + b.size();
       fft::n <<= 1, fft::m++)
    ;
  for (int i = 0; i < a.size(); ++i) fft::a[i] = a[i];
  for (int i = a.size(); i < fft::n; ++i) fft::a[i] = 0;
  for (int i = 0; i < b.size(); ++i) fft::b[i] = b[i];
  for (int i = b.size(); i < fft::n; ++i) fft::b[i] = 0;
  for (int i = 0; i < fft::n; i++)
    fft::rev[i] = (fft::rev[i >> 1] >> 1) | (i & 1) << (fft::m - 1);
  fft::NTT(fft::a, 1);
  fft::NTT(fft::b, 1);
  for (int i = 0; i < fft::n; i++)
    fft::a[i] = fft::a[i] * (long long)fft::b[i] % mod;
  fft::NTT(fft::a, -1);
  while (fft::n && !fft::a[fft::n - 1]) --fft::n;
  a.clear();
  for (int i = 0; i < fft::n; ++i) a.push_back(fft::a[i]);
}
void add(std::vector<int> &a, std::vector<int> &b) {
  while (a.size() < b.size()) a.push_back(0);
  for (int i = 0; i < b.size(); ++i) {
    a[i] += b[i];
    if (a[i] >= mod) a[i] -= mod;
  }
}
void vi_trans(std::vector<std::vector<int> > *a, int l, int r) {
  assert(l < r);
  if (l == r) {
    assert(0);
    V[l].clear();
    V[l].push_back(1);
    W[l].clear();
    W[l].push_back(1);
    return;
  } else if (l + 1 == r) {
    V[l].clear();
    W[l].clear();
    for (auto v : (*a)[l]) {
      V[l].push_back(v);
      W[l].push_back(v);
    }
    ++V[l][0];
    return;
  }
  int m = l + ((r - l) / 2);
  vi_trans(a, l, m);
  vi_trans(a, m, r);
  multiply(W[l], W[m]);
  --V[l][0];
  multiply(V[l], W[m]);
  add(V[l], V[m]);
}
std::vector<int> *vi_trans(std::vector<std::vector<int> > *a) {
  vi_trans(a, 0, a->size());
  return V;
}
void vi_merge(std::vector<std::vector<int> > *a,
              std::vector<std::vector<int> > *b) {
  std::vector<int> *v = vi_trans(b);
  v->insert(v->begin(), 0);
  a->push_back(*v);
}
struct EDGE {
  int to, next;
} edges[maxn * 2];
int cEdge = 1, head[maxn];
void addEdge(int from, int to) {
  edges[cEdge] = (EDGE){to, head[from]};
  head[from] = cEdge++;
}
std::vector<std::vector<int> > *dfs(int u, int f) {
  int cc = 0, v[2];
  std::vector<std::vector<int> > *ret;
  for (int k = head[u]; k; k = edges[k].next)
    if (edges[k].to != f) {
      v[cc++] = edges[k].to;
    }
  assert(cc <= 2);
  switch (cc) {
    case 0:
      ret = new std::vector<std::vector<int> >;
      ret->push_back(std::vector<int>());
      ret->rbegin()->push_back(0);
      ret->rbegin()->push_back(1);
      break;
    case 1:
      ret = dfs(v[0], u);
      ret->push_back(std::vector<int>());
      ret->rbegin()->push_back(0);
      ret->rbegin()->push_back(1);
      break;
    case 2:
      std::vector<std::vector<int> > *t1 = dfs(v[0], u), *t2 = dfs(v[1], u);
      if (t1->size() < t2->size()) std::swap(t1, t2);
      assert(t1->size() >= t2->size());
      vi_merge(t1, t2);
      ret = t1;
      delete t2;
  }
  return ret;
}
int N;
long long X;
long long calc(std::vector<int> &v) {
  long long ret = v[1], t = 1, x = X;
  for (int i = 2; i < v.size(); ++i) {
    x = (x + 1) % mod;
    t = t * x % mod;
    t = t * (long long)(power(i - 1, mod - 2)) % mod;
    ret += t * v[i] % mod;
    if (ret >= mod) ret -= mod;
  }
  return ret;
}
int main() {
  std::cin >> N >> X;
  for (int i = 1; i < N; ++i) {
    int x, y;
    std::cin >> x >> y;
    addEdge(x, y);
    addEdge(y, x);
  }
  std::vector<int> *v = vi_trans(dfs(1, 0));
  std::cout << calc(*v) << std::endl;
}