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 P = 998244353, R = 3;
struct Poly {
  vector<int> a;
  Poly(int d = 0) : a(d + 1) {}
  Poly(const Poly& p) : a(p.a) {}
  Poly(const vector<int>& a) : a(a) {
    if (!a.size()) Poly::a.resize(1);
  }
  const int& operator[](int k) const { return a[k]; }
  int& operator[](int k) { return a[k]; }
  int deg() const { return a.size() - 1; }
  void resize(int d) { a.resize(d + 1); }
  Poly mv(int k) const;
  Poly operator+(const Poly& rhs) const {
    if (deg() <= rhs.deg()) {
      Poly ret(rhs);
      for (int i = 0; i < a.size(); ++i) {
        ret[i] += a[i];
        if (ret[i] >= P) ret[i] -= P;
      }
      return ret;
    }
    Poly ret(a);
    for (int i = 0; i < rhs.a.size(); ++i) {
      ret[i] += rhs[i];
      if (ret[i] >= P) ret[i] -= P;
    }
    return ret;
  }
  Poly operator-(const Poly& rhs) const {
    Poly ret(*this);
    return (ret -= rhs);
  }
  Poly operator*(const Poly& rhs) const;
  Poly operator/(const Poly& rhs) const;
  Poly& operator+=(const Poly& rhs) {
    if (deg() < rhs.deg()) resize(rhs.deg());
    for (int i = 0; i < a.size(); ++i) {
      a[i] += rhs[i];
      if (a[i] >= P) a[i] -= P;
    }
    return *this;
  }
  Poly& operator-=(const Poly& rhs) {
    if (deg() < rhs.deg()) resize(rhs.deg());
    for (int i = 0; i < a.size(); ++i) {
      a[i] -= rhs[i];
      if (a[i] < 0) a[i] += P;
    }
    return *this;
  }
  Poly& operator*=(const Poly& rhs);
  Poly& operator/=(const Poly& rhs);
};
struct Edge {
  int v;
  Edge* next;
};
const int L = 18;
const int N = 100010;
int n;
int sub[N], prt[N], dfn[N], top[N], rev[N];
Edge* g[N];
int ch[N][2];
long long x;
Poly pl[N];
void adde(int u, int v);
void hld(int u);
void dfs(int u);
pair<Poly, Poly> divideConquer(int l, int r);
int inv(int a);
int mpow(int x, int k);
void exGcd(int a, int b, int& x, int& y);
void ntt(int* a, int lgn, bool inv);
int main() {
  scanf("%d%lld", &n, &x);
  x %= P;
  for (int rep = 1; rep < n; ++rep) {
    int u, v;
    scanf("%d%d", &u, &v);
    adde(u, v);
    adde(v, u);
  }
  for (int i = 1; i <= n; ++i) pl[i][0] = 1;
  hld(1);
  top[1] = 1;
  dfs(1);
  int r = n;
  while (r) {
    int l = dfn[top[rev[r]]];
    pl[dfn[prt[rev[l]]]] = divideConquer(l, r).first;
    pl[dfn[prt[rev[l]]]][0] = 1;
    r = l - 1;
  }
  int ans = 0, comb = 1;
  for (int i = 1; i <= n; ++i) {
    ans = (ans + pl[0][i] * (long long)comb) % P;
    ;
    if (++x == P) x = 0;
    comb = comb * (long long)x % P * inv(i) % P;
  }
  printf("%d\n", ans);
  return 0;
}
Poly Poly::mv(int k) const {
  Poly ret = Poly(deg() + k);
  memcpy(ret.a.begin().base() + k, a.begin().base(), a.size() * sizeof(int));
  return ret;
}
pair<Poly, Poly> divideConquer(int l, int r) {
  if (l == r) return make_pair(pl[l].mv(1), pl[l]);
  int mid = (l + r) / 2;
  pair<Poly, Poly> lp = divideConquer(l, mid), rp = divideConquer(mid + 1, r);
  return make_pair(lp.first + (rp.first * lp.second).mv(mid - l + 1),
                   lp.second * rp.second);
};
void dfs(int u) {
  static int t;
  dfn[u] = ++t;
  rev[t] = u;
  if (ch[u][0]) {
    top[ch[u][0]] = top[u];
    dfs(ch[u][0]);
    if (ch[u][1]) {
      top[ch[u][1]] = ch[u][1];
      dfs(ch[u][1]);
    }
  }
}
void hld(int u) {
  sub[u] = 1;
  int cnt = 0;
  for (Edge* p = g[u]; p; p = p->next)
    if (!sub[p->v]) {
      ch[u][cnt++] = p->v;
      prt[p->v] = u;
      hld(p->v);
      sub[u] += sub[p->v];
    }
  if (sub[ch[u][0]] < sub[ch[u][1]]) swap(ch[u][0], ch[u][1]);
}
void adde(int u, int v) {
  static Edge pool[N * 2];
  static Edge* p = pool;
  p->v = v;
  p->next = g[u];
  g[u] = p;
  ++p;
}
void exGcd(int a, int b, int& x, int& y) {
  if (!b) {
    x = 1;
    y = 0;
    return;
  }
  exGcd(b, a % b, y, x);
  y -= a / b * x;
}
int inv(int a) {
  int x, y;
  exGcd(a, P, x, y);
  if (x < 0) x += P;
  return x;
}
void ntt(int* a, int lgn, bool inv) {
  static int cur = -1;
  static int rev[1 << L];
  int n = 1 << lgn;
  if (cur != lgn) {
    for (int i = 1; i < n; ++i)
      rev[i] = (rev[i >> 1] >> 1) | ((i & 1) << (lgn - 1));
    cur = lgn;
  }
  for (int i = 0; i < n; ++i)
    if (i < rev[i]) swap(a[i], a[rev[i]]);
  int rt = inv ? ::inv(R) : R;
  for (int i = 0; i < lgn; ++i) {
    int omega = mpow(rt, (P - 1) >> (i + 1));
    int t = 1 << i;
    for (int j = 0; j < n; j += t << 1) {
      int w = 1;
      for (int k = j; k < j + t; ++k) {
        int a0 = a[k], a1 = a[k + t];
        a[k] = (a0 + w * (long long)a1) % P;
        a[k + t] = (a0 + (P - w) * (long long)a1) % P;
        w = w * (long long)omega % P;
      }
    }
  }
  if (inv) {
    int r = ::inv(n);
    for (int i = 0; i < n; ++i) a[i] = a[i] * (long long)r % P;
  }
}
int mpow(int x, int k) {
  int ret = 1;
  while (k) {
    if (k & 1) ret = ret * (long long)x % P;
    x = x * (long long)x % P;
    k >>= 1;
  }
  return ret;
}
Poly Poly::operator*(const Poly& rhs) const {
  Poly ret(*this);
  ret *= rhs;
  return ret;
}
Poly& Poly::operator*=(const Poly& rhs) {
  int n = deg() + rhs.deg();
  int lgn = 0;
  while (1 << lgn <= n) ++lgn;
  resize((1 << lgn) - 1);
  ntt(a.begin().base(), lgn, false);
  static int tmp[1 << L];
  memset(tmp, 0, sizeof(int) << lgn);
  memcpy(tmp, rhs.a.begin().base(), rhs.a.size() * sizeof(int));
  ntt(tmp, lgn, false);
  for (int i = 0; i < (1 << lgn); ++i) a[i] = a[i] * (long long)tmp[i] % P;
  ntt(a.begin().base(), lgn, true);
  resize(n);
  return *this;
}