N, X, Y = map(int, input().split()) X, Y = min(X, Y), max(X, Y) if X>1: X += 1 if Y=3: dp[i] += dp[i-3] dp[i] %= 998244353 print(dp[-1])