#include <bits/stdc++.h>
using namespace std;
const long long int MOD = 998244353;
long long int power(long long int a, int r) {
  long long int ans = 1;
  while (r > 0) {
    if (r & 1) ans = ans * a % MOD;
    a = a * a % MOD;
    r >>= 1;
  }
  return ans;
}
long long int inv(long long int a) { return power(a, MOD - 2); }
int main() {
  int n, m;
  cin >> n >> m;
  long long int x = 0;
  for (int i = 1; i <= n; i++) {
    x = x + inv(i);
    if (x >= MOD) x -= MOD;
  }
  x = (x * m + 1) % MOD;
  long long int y = (m + n + 1) * inv(m + 1) % MOD;
  cout << x * y % MOD << "\n";
}
