#include <bits/stdc++.h>
using namespace std;
int read() {
  int x = 0, flag = 1;
  char c = getchar();
  while ((c > '9' || c < '0') && c != '-') c = getchar();
  if (c == '-') flag = 0, c = getchar();
  while (c <= '9' && c >= '0') {
    x = (x << 3) + (x << 1) + c - '0';
    c = getchar();
  }
  return flag ? x : -x;
}
const int M = 998244353;
int ksm(int x, int k) {
  int ret = 1;
  while (k) {
    if (k & 1) ret = 1ll * ret * x % M;
    x = 1ll * x * x % M;
    k >>= 1;
  }
  return ret;
}
int main() {
  int n = read(), m = read();
  int ans1 = (1ll * n * ksm(m + 1, M - 2) % M + 1) % M;
  int ans2 = 0;
  for (int i = (1); i <= (int)(n); i++) ans2 = (ans2 + ksm(i, M - 2)) % M;
  ans2 = (1ll * ans2 * m + 1) % M;
  printf("%d\n", 1ll * ans1 * ans2 % M);
  return 0;
}
