n,m=map(int,input().split());mod=998244353 x=(pow(2,n-1,mod)-1+mod)%mod y=(pow(2,n,mod)-1+mod)%mod ans=1 ans2=1 z=y;v=x if x