using System; class G { static void Main() { var n = int.Parse(Console.ReadLine()); var ncr = new MInt[n + 1]; ncr[0] = 1; for (int i = 0; i < n; i++) ncr[i + 1] = ncr[i] * (n - i) / (i + 1); MInt r = 0; for (int d = 0; d <= n; d += 2) r += 2 * ncr[d] * MInt.MPow(2, Math.Abs(2 * d - n)); Console.WriteLine(r); } } struct MInt { const long M = 998244353; public long V; public MInt(long v) { V = (v %= M) < 0 ? v + M : v; } public override string ToString() => $"{V}"; public static implicit operator MInt(long v) => new MInt(v); public static MInt operator -(MInt x) => -x.V; public static MInt operator +(MInt x, MInt y) => x.V + y.V; public static MInt operator -(MInt x, MInt y) => x.V - y.V; public static MInt operator *(MInt x, MInt y) => x.V * y.V; public static MInt operator /(MInt x, MInt y) => x.V * y.Inv().V; public static long MPow(long b, long i) { long r = 1; for (; i != 0; b = b * b % M, i >>= 1) if ((i & 1) != 0) r = r * b % M; return r; } public MInt Pow(long i) => MPow(V, i); public MInt Inv() => MPow(V, M - 2); }