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 mod = 998244353;
vector<int> fact, invfact, p;
int add(int a, int b) {
  a += b;
  while (a >= mod) a -= mod;
  return a;
}
void radd(int& a, int b) { a = add(a, b); }
int mult(int a, int b) { return 1ll * a * b % mod; }
void rmult(int& a, int b) { a = mult(a, b); }
int expo(int a, int b) {
  int res = 1;
  while (b) {
    if (b & 1) res = mult(res, a);
    a = mult(a, a);
    b >>= 1;
  }
  return res;
}
int check(int a, int b) {
  if (a < 0 or b < 0 or a < b) return 0;
  if (b == 0 or a == b) return 1;
  return mult(fact[a], mult(invfact[b], invfact[a - b]));
}
int inv(int x) { return expo(x, mod - 2); }
void precompute(int n) {
  fact.clear();
  invfact.clear();
  p.clear();
  fact.resize(n + 1);
  invfact.resize(n + 1);
  p.resize(n + 1);
  p[0] = invfact[0] = fact[0] = 1;
  for (int i = 1; i <= n; i++) {
    p[i] = add(p[i - 1], p[i - 1]);
    fact[i] = mult(fact[i - 1], i);
  }
  invfact[n] = inv(fact[n]);
  for (int i = n - 1; i >= 1; i--) invfact[i] = mult(invfact[i + 1], i + 1);
}
int find(int n, int m) {
  vector<int> f(n + 1, 0);
  int pre = 0;
  for (int k = 1; k <= n; k++) {
    int res = mult(pre, check(n + m, m + k));
    radd(res, mult(fact[m - 1],
                   mult(check(m + k + 1, m + 1), check(n + m + 1, m + k + 1))));
    int o = mult(fact[k], mult(fact[n - k], mult(invfact[n + m], m)));
    res = mult(res, o);
    f[k] = mult(mult(m + k, mult(invfact[k], fact[k - 1])), res);
    radd(pre, mult(fact[m + k - 1], mult(invfact[k], f[k])));
  }
  return f[n];
}
int main() {
  precompute((int)1e7 + 100);
  int n, m;
  cin >> n >> m;
  cout << find(n, m);
}