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 <class T>
void _R(T &x) {
  cin >> x;
}
void _R(int &x) { scanf("%d", &x); }
void _R(long long &x) { scanf("%lld", &x); }
void _R(double &x) { scanf("%lf", &x); }
void _R(char &x) { scanf("%c", &x); }
void _R(char *x) { scanf("%s", x); }
void R() {}
template <class T, class... U>
void R(T &head, U &...tail) {
  _R(head);
  R(tail...);
}
template <class T>
void _W(const T &x) {
  cout << x;
}
void _W(const int &x) { printf("%d", x); }
void _W(const long long &x) { printf("%lld", x); }
void _W(const double &x) { printf("%.16f", x); }
void _W(const char &x) { putchar(x); }
void _W(const char *x) { printf("%s", x); }
template <class T, class U>
void _W(const pair<T, U> &x) {
  _W(x.first);
  putchar(' ');
  _W(x.second);
}
template <class T>
void _W(const vector<T> &x) {
  for (auto i = x.begin(); i != x.end(); _W(*i++))
    if (i != x.cbegin()) putchar(' ');
}
void W() {}
template <class T, class... U>
void W(const T &head, const U &...tail) {
  _W(head);
  putchar(sizeof...(tail) ? ' ' : '\n');
  W(tail...);
}
long long m, N;
const long long mod = 998244353;
long long inv[4000006];
long long inc[4000006];
long long fac[4000006];
long long s1, s2, s3, t1, t2, t3;
int main() {
  inc[0] = inc[1] = inv[0] = inv[1] = 1;
  fac[0] = fac[1] = 1;
  for (long long i = 2; i <= 4000000; ++i)
    inv[i] = (mod - mod / i) * inv[mod % i] % mod;
  for (long long i = 2; i <= 4000000; ++i) {
    inc[i] = inv[i] * inc[i - 1] % mod;
    fac[i] = i * fac[i - 1] % mod;
  }
  R(N, m);
  long long lst = 0;
  s1 = s2 = s3 = 1;
  for (long long n = 1; n <= N; ++n) {
    t1 = (n - 1) % mod * inv[n + m - 1] % mod;
    t2 = (n + m) * (N - n + m + 1) % mod * inv[n] % mod * inv[m + 1] % mod;
    t3 = fac[n - 1] % mod * fac[n + m - 2] % mod * inc[n + m - 1] % mod *
         inc[n - 1] % mod;
    long long ans = (s1 * t1 % mod + t2 * s2 % mod * t1 % mod +
                     (s2 + s3) * t1 % mod + (t2 + 1 + lst) % mod * t3 % mod) %
                    mod * m % mod;
    s1 = (s1 * t1 % mod + lst * t3 % mod) % mod;
    s3 = ((s2 + s3) * t1 % mod + t3) % mod;
    s2 = (s2 * t1 % mod + t3) % mod;
    lst = ans;
  }
  W(lst);
  return 0;
}