using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); static long[] NList => ReadLine().Split().Select(long.Parse).ToArray(); public static void Main() { Solve(); } static void Solve() { var c = NList; var (n, x, y) = (c[0], c[1], c[2]); if (x > y) (x, y) = (y, x); if (x > 1) ++x; if (y < n) --y; if (x > 0) { y -= x; x = 0; } if (y < 0) { WriteLine(0); return; } var mod = 998_244_353; var dp = new long[y + 1]; dp[0] = 1; for (var i = 0; i < dp.Length; ++i) { if (i + 3 < dp.Length) dp[i + 3] = (dp[i + 3] + dp[i]) % mod; if (i + 1 < dp.Length) dp[i + 1] = (dp[i + 1] + dp[i]) % mod; } WriteLine(dp.Last()); } }