n,k = map(int,input().split()) a = (n+k-1)//k print((2**a-1)/998244353)