n, x, y = map(int, input().split()) mod = 998244353 if x > y: x, y = y, x if x > 1: x += 1 if y < n: y -= 1 dif = y - x if dif < 0: print(0) else: DP = [0 for _ in range(dif + 1)] DP[0] = 1 for i in range(dif): DP[i + 1] += DP[i] DP[i + 1] %= mod if i + 3 <= dif: DP[i + 3] += DP[i] DP[i + 3] %= mod print(DP[dif])