N,M=map(int,input().split()) mod=998244353 dp=[0 for _ in range(N+1)] dp[-1]=1 inv=[pow(i,mod-2,mod) for i in range(N+1)] for _ in range(M): dp2=[0 for _ in range(N+1)] dp2[-1]=1 a=0 for j in range(N): a+=dp[-j-1] a%=mod dp2[-j-2]=a*inv[j+1]%mod dp=dp2.copy() print(dp[0])