# frozen_string_literal: true M = 998_244_353 def solve 2.pow(Rational(N, L).ceil, M) - 1 end N, L = gets.split.map(&:to_i) puts solve