mod = 998244353 n, l = map(int, input().split()) if n<=l: print(1) else: print((pow(2,n-l+1,mod)-1)%mod)