#define _CRT_SECURE_NO_WARNINGS
#include<bits/stdc++.h>
#define int long long
#define endl '\n'
using namespace std;
const int MAXN = (int)2e5 + 1, MOD = 998244353;
int dp[MAXN] = { 0 , 1 }, pw[MAXN] = { 1 };
signed main() {
	//freopen("1.txt", "r", stdin);
	ios::sync_with_stdio(0);
	cin.tie(0);
	int n;
	cin >> n;
	for (int i = 2;i <= MAXN - 1;i++) {
		dp[i] = (dp[i - 1] + dp[i - 2]) % MOD;
	}
	for (int i = 1;i <= MAXN - 1;i++) {
		pw[i] = (pw[i - 1] * (MOD + 1) / 2) % MOD;
	}
	cout << dp[n] * pw[n] % MOD;
	return 0;
}