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;
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  cerr << name << " : " << arg1 << std::endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cerr.write(names, comma - names) << " : " << arg1 << " | ";
  __f(comma + 1, args...);
}
const int g = 3, mod = 998244353, p = 998244353;
inline int add(int x, int y) {
  x += y;
  if (x >= mod) x -= mod;
  return x;
}
inline int sub(int x, int y) {
  x -= y;
  if (x < 0) x += mod;
  return x;
}
inline int mul(int x, int y) { return (x * 1ll * y) % mod; }
inline int powr(int a, long long b) {
  int x = 1 % mod;
  while (b) {
    if (b & 1) x = mul(x, a);
    a = mul(a, a);
    b >>= 1;
  }
  return x;
}
inline int inv(int a) { return powr(a, mod - 2); }
const int MX = 18;
int W[1 << MX], invW[1 << MX];
int maxn;
void precompute_powers() {
  int p2 = p - 1, MAXN = 0;
  while (p2 % 2 == 0) {
    p2 >>= 1;
    MAXN++;
  }
  MAXN = min(MAXN, MX);
  int g1 = powr(g, (p - 1) >> MAXN);
  maxn = 1 << MAXN;
  int st = 1;
  for (int i = 0; i < maxn; i++) {
    W[i] = st;
    st = mul(st, g1);
  }
  for (int i = 0; i < maxn; i++) {
    invW[i] = (i == 0) ? 1 : W[maxn - i];
  }
}
void fft(vector<int>& a, bool invert) {
  int n = (int)a.size();
  for (int i = 1, j = 0; i < n; ++i) {
    int bit = n >> 1;
    for (; j >= bit; bit >>= 1) j -= bit;
    j += bit;
    if (i < j) swap(a[i], a[j]);
  }
  for (int len = 2; len <= n; len <<= 1) {
    for (int i = 0; i < n; i += len) {
      int ind = 0, ADD = maxn / len;
      for (int j = 0; j < len / 2; ++j) {
        int u = a[i + j],
            v = mul(a[i + j + len / 2], (invert ? invW[ind] : W[ind]));
        a[i + j] = add(u, v);
        a[i + j + len / 2] = sub(u, v);
        ind += ADD;
      }
    }
  }
  if (invert) {
    int invn = inv(n);
    for (int i = 0; i < n; ++i) a[i] = mul(a[i], invn);
  }
}
const long long mod2 = 4ll * mod * (long long)mod;
long long temp[200005];
vector<int> naive_mul(vector<int>& a, vector<int>& b) {
  int sz = a.size() + b.size() - 1;
  vector<int> c(sz);
  for (int i = 0; i < sz; i++) temp[i] = 0;
  for (int i = 0; i < a.size(); i++)
    for (int j = 0; j < b.size(); j++) {
      temp[i + j] += a[i] * (long long)b[j];
      if (temp[i + j] >= mod2) temp[i + j] -= mod2;
    }
  for (int i = 0; i < sz; i++) c[i] = temp[i] % mod;
  return c;
}
vector<int> mul(vector<int> a, vector<int> b) {
  long long time_1 = (a.size() + b.size()) * 100,
            time_2 = a.size() * (long long)b.size();
  if (time_2 < time_1) {
    return naive_mul(a, b);
  }
  int sz = a.size() + b.size() - 1;
  int k = 0;
  while ((1 << k) < sz) k++;
  a.resize(1 << k);
  b.resize(1 << k);
  fft(a, 0);
  fft(b, 0);
  for (int i = 0; i < (1 << k); i++) a[i] = mul(a[i], b[i]);
  fft(a, 1);
  a.resize(sz);
  return a;
}
const int N = 100005;
vector<int> con[N];
vector<int> T[N];
int sz[N];
void dfs(int s = 1, int p = 0) {
  sz[s] = 1;
  for (int v : con[s])
    if (v != p) {
      dfs(v, s);
      sz[s] += sz[v];
    }
}
vector<int> X = {0, 1};
const int Delta = 3005;
vector<int> add(vector<int> a, vector<int> b) {
  if (a.size() < b.size()) {
    for (int i = 0; i < a.size(); i++) b[i] = add(a[i], b[i]);
    return b;
  } else {
    for (int i = 0; i < b.size(); i++) a[i] = add(a[i], b[i]);
    return a;
  }
}
vector<int> sub(vector<int> a, vector<int> b) {
  vector<int> ret(max(a.size(), b.size()));
  for (int i = 0; i < ret.size(); i++) {
    ret[i] = sub(i < a.size() ? a[i] : 0, i < b.size() ? b[i] : 0);
  }
  return ret;
}
vector<int> Zero = {0};
vector<int> force_eval(pair<int, pair<vector<int>, vector<int>>>& inp) {
  return add(inp.first == -1 ? Zero : mul(T[inp.first], inp.second.first),
             inp.second.second);
}
int ind[N];
pair<int, pair<vector<int>, vector<int>>> st[N];
int dfs2(int s = 1, int p = 0) {
  if (s == 0) {
    return 0;
  }
  int cnt = 0;
  vector<int> children;
  for (int v : con[s])
    if (v != p) {
      children.push_back(v);
    }
  if (children.empty()) {
    T[s] = {1, 1};
    st[s] = {s, {{1}, {0}}};
    return s;
  }
  if (children.size() == 1) children.push_back(0);
  if (sz[children[0]] > sz[children[1]]) swap(children[0], children[1]);
  int got = dfs2(children[0], s);
  vector<int> to_add = force_eval(st[got]);
  reverse(to_add.begin(), to_add.end());
  to_add.push_back(0);
  reverse(to_add.begin(), to_add.end());
  int ret = dfs2(children[1], s);
  st[ret].second.first = mul(st[ret].second.first, to_add);
  st[ret].second.second = mul(st[ret].second.second, to_add);
  st[ret].second.second[0] = add(st[ret].second.second[0], 1);
  if (st[ret].second.first.size() >= Delta) {
    T[s] = force_eval(st[ret]);
    st[ret].second.first.clear();
    st[ret].second.first.shrink_to_fit();
    st[ret].second.second.clear();
    st[ret].second.second.shrink_to_fit();
    st[ret] = {s, {{1}, {0}}};
  }
  return ret;
}
int main() {
  precompute_powers();
  T[0] = {1};
  st[0] = {{0}, {{1}, {0}}};
  int n = 100000;
  scanf("%d", &(n));
  long long x = 1e9;
  scanf("%lld", &x);
  for (int i = 1; i < n; i++) {
    int u, v;
    if (i <= n) {
      u = i + 1;
      v = i;
    } else {
      u = i - n / 2, v = i + 1;
    }
    scanf("%d", &(u));
    scanf("%d", &(v));
    con[u].push_back(v);
    con[v].push_back(u);
  }
  dfs();
  pair<int, pair<vector<int>, vector<int>>> ans = st[dfs2()];
  vector<int> vec = force_eval(ans);
  x %= mod;
  int curr = 1;
  int ret = 0;
  for (int i = 1; i <= n; i++) {
    ret = add(ret, mul(curr, vec[i]));
    curr = mul(curr, x + i);
    curr = mul(curr, inv(i));
  }
  printf("%d\n", ret);
}