A,B=map(int,input().split()) mod=998244353 res=1 for i in range(A-1): res=res*(A+B-2-i)%mod*pow(i+1,-1,mod)%mod print(res)