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