a,b=map(int,input().split()) import math ans=math.comb(a+b-2,a-1)%998244353 print(ans)