use proconio::input; fn main() { input! { n:usize, x:usize, y:usize, } let (x, y) = if x < y { (x, y) } else { (y, x) }; let x = if x == 1 { 0 } else { x }; let y = if y == n { n + 1 } else { y }; let d = (y - 1).saturating_sub(x); if d == 0 { println!("0"); return; } let mut dp = vec![0; d]; dp[0] = 1; for i in 0..d.saturating_sub(1) { dp[i + 1] += dp[i]; dp[i + 1] %= MOD; if i + 3 < d { dp[i + 3] += dp[i]; dp[i + 3] %= MOD; } } let ans = dp[d - 1]; println!("{}", ans); } const MOD: usize = 998244353;