fn main() { let mut nl = String::new(); std::io::stdin().read_line(&mut nl).ok(); let nl: Vec = nl.trim().split_whitespace().map(|s| s.parse().unwrap()).collect(); let n = nl[0] / nl[1] + if nl[0] % nl[1] > 0 { 1 } else { 0 }; println!("{}", (2 * n - 1) % 998244353); }