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;
const int max_n = 2000111, mod = 998244353;
int mul(int x, int y) { return (1LL * x * y) % mod; }
int power(int a, int b) {
  if (b == 0) {
    return 1 % mod;
  }
  if (b % 2 == 0) {
    return power(mul(a, a), b / 2);
  }
  return mul(a, power(a, b - 1));
}
int inv(int x) { return power(x, mod - 2); }
const int max_f = 4000222;
int f[max_f], rf[max_f];
void get_all_f() {
  f[0] = rf[0] = 1;
  for (int i = 1; i < max_f; ++i) {
    f[i] = mul(i, f[i - 1]);
  }
  rf[max_f - 1] = inv(f[max_f - 1]);
  for (int i = max_f - 2; i > 0; --i) {
    rf[i] = mul(i + 1, rf[i + 1]);
  }
}
int get_c(int n, int k) {
  if (n < k) {
    return 0;
  }
  return mul(f[n], mul(rf[k], rf[n - k]));
}
string str_fraq(int x, int n = 20) {
  stringstream res;
  for (int i = 0; i < n; ++i) {
    for (int j = 1; j < n; ++j) {
      if (i == mul(x, j)) {
        res << i << "/" << j;
        return res.str();
      }
    }
  }
  res << x;
  return res.str();
}
int n, m, dp[max_n];
int im1;
int func(int k) { return mul(k, im1); }
int main() {
  get_all_f();
  cin >> n >> m;
  im1 = inv(m + 1);
  int sum = 0;
  for (int x = 1; x <= n; ++x) {
    const int k = n - x;
    dp[x] = (func(k) + 1) % mod;
    dp[x] += mul(f[x], mul(f[m], mul(rf[x + m], sum)));
    dp[x] %= mod;
    const int C0 =
        mul(rf[x + m], mul(f[x], mul(f[m], get_c(m - 1 + x, m - 1))));
    int coef = (1 + mod - C0) % mod;
    dp[x] += func(x);
    dp[x] %= mod;
    dp[x] = mul(dp[x], inv(coef));
    sum += mul(dp[x], get_c(m - 1 + x, x));
    sum %= mod;
  }
  cout << dp[n] << endl;
  return 0;
}