a, b = map(int, input().split()) mod = 998244353; ans = 1 for i in range(a-1): ans = ans*(a+b-2-i)%mod*pow(i+1, -1, mod)%mod print(ans)