import math
n,m=map(int,input().split(" "))
print(math.comb(m+n-2,n-1)%998244353)