MOD = 998244353 n, x, y = map(int, input().split()) if x > y: x, y = y, x if y == x + 1 and x != 1 and y != n: print(0) exit() if x != 1: x += 1 if y != n: y -= 1 d = y - x + 1 dp = [0, 1, 1, 1] while len(dp) < d + 1: dp.append((dp[-1] + dp[-3]) % MOD) print(dp[d])