#include <iostream>
#include <cmath>
#include <utility>

using namespace std;

#define mp make_pair
#define x first
#define y second
typedef pair<int,int> pii;
typedef long long ll;

ll fib[200003],pot[200003];

int mod=998244353;

ll bp(ll x){
	int ex=mod-2;
	ll s=1ll;
	ll t=x;
	for(int i=0;i<30;i++){
		if(ex&(1<<i)) s=(s*t)%mod;
		t=(t*t)%mod;
	}
	return s;
}

int main(){
	ll n;
	cin>>n;
	fib[1]=1ll;
	pot[0]=1ll; pot[1]=2ll;
	for(int i=2;i<=n;i++){
		pot[i]=pot[i-1]*2ll%mod;
		fib[i]=(fib[i-1]+fib[i-2])%mod;
	}
	cout<<fib[n]*bp(pot[n])%mod;
	




return 0;
}

