N,M=map(int,input().split()) K=2*(M+N) mod=998244353 u=[1]*(K+1) for i in range(1,K+1): u[i]=u[i-1]*i u[i]%=mod u2=[1]*(K+1) for i in range(1,K+1): ans=1 w=u[i] n=mod-2 while n>0: if n&1: ans*=w ans%=mod w**=2 w%=mod n//=2 u2[i]=ans def ncm(x,y): if y>x: return 0 ans=u[x] ans*=u2[y] ans%=mod ans*=u2[x-y] ans%=mod return ans result=0 for k in range(1,M+1): result+=ncm(2*k-2,N-1) result%=mod print(result)