#include using namespace std; #define all(v) v.begin(),v.end() using ll = long long; using ull = unsigned long long; using vll=vector; using vvll = vector>; ll mod=998244353; vector fact,invfact,inv; void init(ll N){ fact.resize(N+5); inv.resize(N+5); invfact.resize(N+5); fact[0]=1;fact[1]=1; invfact[0]=1;invfact[1]=1; inv[0]=1;inv[1]=1; for(int i=2;i0){ if(n&1) res*=x; x*=x; res%=m; x%=m; n>>=1; } return res; } int main(){ ll N; cin>>N; init(N); ll ans=0; ll n=N; for(int i=N;i>N/2;i--){ ans+=powmod(2,n,mod)*nCk(N,i)*2; ans%=mod; n-=2; } if(N%2==0){ ans+=nCk(N,N/2); } cout << ans%mod << endl; }