n, x, y = map(int, input().split()) if x > y: x, y = y, x if y - x == 1: if (x == 1) | (y == n): print("{}".format(1)) else: print("{}".format(0)) exit() m = y - x - 1 if x == 1: m += 1 if y == n: m += 1 dp = [0 for i in range(m)] dp[0] = 1 p = 998244353 for i in range(1,m): if i >= 3: dp[i] = (dp[i-1] + dp[i-3]) % p else: dp[i] = dp[i-1] ans = dp[m-1] print("{}".format(ans))