#include using namespace std; typedef long long ll; const int INF = 1e9; const double eps = 1e-7; const ll LINF = ll(1e18); const int MOD = 998244353; const int dx[4] = {0, 1, 0, -1}, dy[4] = {-1, 0, 1, 0}; const int Dx[8] = {0, 1, 1, 1, 0, -1, -1, -1}, Dy[8] = {-1, -1, 0, 1, 1, 1, 0, -1}; const long double pi = 4 * atan(1); #define rep(i, n) for (int i = 0; i < n; i++) #define ALL(v) v.begin(), v.end() #define debug(v) \ cout << #v << ":"; \ for (auto x : v) \ { \ cout << x << ' '; \ } \ cout << endl; template bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template bool chmin(T &a, const T &b) { if (b < a) { a = b; return 1; } return 0; } ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; } ll lcm(ll a, ll b) { return a / gcd(a, b) * b; } ll mpow(ll x, ll n) { ll ans = 1; while (n != 0) { if (n & 1) ans = ans * x % MOD; x = x * x % MOD; n = n >> 1; } return ans; } vector fac(2000001); //n!(mod M) vector ifac(2000001); //k!^{M-2} (mod M) ll comb(ll a, ll b) { //aCb(mod M) if (a == 0 && b == 0) return 1; if (a < b || a < 0) return 0; ll tmp = ifac[a - b] * ifac[b] % MOD; return tmp * fac[a] % MOD; } int main() { cin.tie(0); ios::sync_with_stdio(false); ll n; cin >> n; assert(n <= 2 * pow(10, 5) && n >= 3); fac[0] = 1; ifac[0] = 1; for (ll i = 0; i < 2000000; i++) { fac[i + 1] = fac[i] * (i + 1) % MOD; // n!(mod M) ifac[i + 1] = ifac[i] * mpow(i + 1, MOD - 2) % MOD; // k!^{M-2} (mod M) } ll ans=0; for(ll i=0;i<=n;i+=2){ ans+=2*comb(n,i)*mpow(2,abs(n-2*i))%MOD; ans%=MOD; } cout<