MOD = 998244353 N, L = gets.split.map(&:to_i) puts 2.pow(Rational(N, L).ceil, MOD) - 1