n,x,y = map(int,input().split()) if x > y: x,y = y,x if x != 1: x += 1 if y != n: y-=1 if y-x < 0: print(0) elif y-x < 2: print(1) else: dp = [[0]*2 for i in range(n+4)] dp[0][0] = 1 dp[1][1] = 1 dp[2][1] = 1 dp[3][1] = 1 mod = 998244353 for i in range(1,n+1): dp[i][0] += dp[i-1][1] + dp[i-1][0] dp[i+3][1] += dp[i][0] + dp[i][1] dp[i][0] %= mod dp[i+3][1] %= mod print(sum(dp[y-x-2])%mod)