Problem: zscoder has a deck of n+m custom-made cards, which consists of n cards labelled from 1 to n and m jokers. Since zscoder is lonely, he wants to play a game with himself using those cards. 

Initially, the deck is shuffled uniformly randomly and placed on the table. zscoder has a set S which is initially empty. 

Every second, zscoder draws the top card from the deck. 

  * If the card has a number x written on it, zscoder removes the card and adds x to the set S. 
  * If the card drawn is a joker, zscoder places all the cards back into the deck and reshuffles (uniformly randomly) the n+m cards to form a new deck (hence the new deck now contains all cards from 1 to n and the m jokers). Then, if S currently contains all the elements from 1 to n, the game ends. Shuffling the deck doesn't take time at all. 



What is the expected number of seconds before the game ends? We can show that the answer can be written in the form P/Q where P, Q are relatively prime integers and Q ≠ 0 mod 998244353. Output the value of (P ⋅ Q^{-1}) modulo 998244353.

Input

The only line of the input contains two integers n and m (1 ≤ n, m ≤ 2 ⋅ 10^{6}).

Output

Output a single integer, the value of (P ⋅ Q^{-1}) modulo 998244353.

Examples

Input


2 1


Output


5


Input


3 2


Output


332748127


Input


14 9


Output


969862773

Note

For the first sample, it can be proven that the expected time before the game ends is 5 seconds.

For the second sample, it can be proven that the expected time before the game ends is 28/3 seconds.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
template <typename A, typename B>
string to_string(pair<A, B> p);
template <typename A, typename B, typename C>
string to_string(tuple<A, B, C> p);
template <typename A, typename B, typename C, typename D>
string to_string(tuple<A, B, C, D> p);
string to_string(const string& s) { return '"' + s + '"'; }
string to_string(const char* s) { return to_string((string)s); }
string to_string(bool b) { return (b ? "true" : "false"); }
string to_string(vector<bool> v) {
  bool first = true;
  string res = "{";
  for (int i = 0; i < static_cast<int>(v.size()); i++) {
    if (!first) {
      res += ", ";
    }
    first = false;
    res += to_string(v[i]);
  }
  res += "}";
  return res;
}
template <size_t N>
string to_string(bitset<N> v) {
  string res = "";
  for (size_t i = 0; i < N; i++) {
    res += static_cast<char>('0' + v[i]);
  }
  return res;
}
template <typename A>
string to_string(A v) {
  bool first = true;
  string res = "{";
  for (const auto& x : v) {
    if (!first) {
      res += ", ";
    }
    first = false;
    res += to_string(x);
  }
  res += "}";
  return res;
}
template <typename A, typename B>
string to_string(pair<A, B> p) {
  return "(" + to_string(p.first) + ", " + to_string(p.second) + ")";
}
template <typename A, typename B, typename C>
string to_string(tuple<A, B, C> p) {
  return "(" + to_string(get<0>(p)) + ", " + to_string(get<1>(p)) + ", " +
         to_string(get<2>(p)) + ")";
}
template <typename A, typename B, typename C, typename D>
string to_string(tuple<A, B, C, D> p) {
  return "(" + to_string(get<0>(p)) + ", " + to_string(get<1>(p)) + ", " +
         to_string(get<2>(p)) + ", " + to_string(get<3>(p)) + ")";
}
void debug_out() { cerr << endl; }
template <typename Head, typename... Tail>
void debug_out(Head H, Tail... T) {
  cerr << " " << to_string(H);
  debug_out(T...);
}
struct comb_cal {
  const int mod = (int)998244353;
  inline int add(int a, int b) const {
    a += b;
    return a < mod ? a : a - mod;
  }
  inline int sub(int a, int b) const {
    a -= b;
    return a < 0 ? a + mod : a;
  }
  inline int mul(long long a, int b) const {
    a *= b;
    return a < mod ? a : a - a / mod * mod;
  }
  inline int pow_mod(int a, long long b) const {
    int res = 1;
    for (; b; b >>= 1, a = mul(a, a))
      if (b & 1) res = mul(res, a);
    return res;
  }
  inline int inv(int a) const {
    a %= mod;
    if (a < 0) a += mod;
    int b = mod, u = 0, v = 1;
    for (; a;) {
      int t = b / a;
      b -= t * a;
      swap(a, b);
      u -= t * v;
      swap(u, v);
    }
    if (b != 1) return -1;
    if (u < 0) u += mod;
    return u;
  }
  vector<int> fact, finv;
  void init_comb_1(unsigned n = 1000000) {
    fact.resize(n + 10);
    finv.resize(n + 10);
    fact[0] = 1;
    for (int i = 1; i <= n; ++i) {
      fact[i] = mul(fact[i - 1], i);
    }
    finv[n] = inv(fact[n]);
    for (int i = n - 1; ~i; --i) {
      finv[i] = mul(finv[i + 1], (i + 1));
    }
  }
  inline int C(int n, int m) const {
    if (n < m) return 0;
    return (int)(((long long)fact[n] * finv[m] % mod) * finv[n - m] % mod);
  }
  inline int lucas(int n, int m) const {
    if (n < m) return 0;
    if (!m || n == m) return 1;
    return mul(lucas(n / mod, m / mod), C(n % mod, m % mod));
  }
  vector<vector<int>> c2;
  void init_combsqr(int n = 3000) {
    c2.assign(n + 1, vector<int>(n + 1, 0));
    c2[0][0] = 1;
    for (int i = 1; i <= n; ++i) {
      c2[i][0] = c2[i][i] = 1;
      for (int j = 1; j < i; ++j) {
        c2[i][j] = c2[i - 1][j - 1] + c2[i - 1][j];
        if (c2[i][j] >= mod) {
          c2[i][j] -= mod;
        }
      }
    }
  }
  int operator()(int n, int m) const { return n < m ? 0 : c2[n][m]; }
  vector<int> const_power_head, const_init_power;
  unsigned power_block = 100000;
  void gen_const_power(long long val) {
    const_power_head.resize(power_block + 2);
    const_init_power.resize(power_block + 2);
    const_init_power[0] = 1;
    for (int i = 1; i <= power_block; ++i) {
      const_init_power[i] = mul(val, const_init_power[i - 1]);
    }
    const_power_head[0] = 1;
    for (int i = 1; i <= power_block; ++i) {
      const_power_head[i] =
          mul(const_power_head[i - 1], const_init_power[power_block]);
    }
  }
  inline int get_const_power(long long x) {
    if (x >= mod - 1) {
      x %= mod - 1;
    }
    return mul(const_power_head[x / power_block],
               const_init_power[x % power_block]);
  }
} comb;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n, m;
  cin >> n >> m;
  int ans = comb.add(comb.mul(n, comb.inv(m + 1)), 1);
  int h = 0;
  for (int i = 1; i <= n; i++) {
    h = comb.add(h, comb.inv(i));
  }
  ans = comb.mul(ans, comb.add(comb.mul(m, h), 1));
  cout << ans;
  return 0;
}