using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); static int[] NList => ReadLine().Split().Select(int.Parse).ToArray(); static int[][] NArr(long n) => Enumerable.Repeat(0, (int)n).Select(_ => NList).ToArray(); public static void Main() { Solve(); } static void Solve() { var r = new long[200001]; r[1] = 1; r[2] = 1; var e = new long[200001]; e[1] = 1; e[2] = 3; var mod = 998_244_353; for (var i = 3; i < r.Length; ++i) { r[i] = (r[i - 2] + r[i - 1]) % mod; e[i] = (e[i - 2] + e[i - 1]) % mod; } var q = NN; var ans = new long[q]; for (var i = 0; i < q; ++i) { var n = NN; ans[i] = (5 * r[n] % mod * r[n] % mod - e[n] * e[n] % mod + mod) % mod; } WriteLine(string.Join("\n", ans)); } }