N = int(input()) mod = 998244353 fac = [0]*(N+1) inv = [0]*(N+1) fac[0], inv[0] = 1, 1 for i in range(1, N+1): fac[i] = fac[i-1]*i fac[i] %= mod inv[i] = inv[i-1]*pow(i, mod-2, mod) inv[i] %= mod res = (2*pow(2,N,mod))%mod for i in range(1,N): if i+i<=N: res += (2*fac[N-2*i+2*i-1]*inv[N-2*i]*inv[2*i-1]*pow(2,abs(N-4*i),mod))%mod res %= mod if i+i+1<=N: res += (2*fac[N-2*i-1+2*i]*inv[N-2*i-1]*inv[2*i]*pow(2,abs(N-4*i),mod))%mod res %= mod print(res)