mod=998244353

n=int(input())
m=int(input())
#n=10**18
#m=10**5
def fpow(x,k):
  res=1
  while k:
    if k&1:
      res=res*x%mod
    x=x*x%mod
    k>>=1
  return res

ans=fpow(2,n)-1
tmp=1
for i in range(1,m):
  tmp*=(n+1-i)%mod
  tmp%=mod
  tmp*=fpow(i,mod-2)
  tmp%=mod
  ans-=tmp
  ans%=mod

print(ans)