#include using namespace std; void fast_io() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } #include using mint = atcoder::modint998244353; mint fact[500005], inv[500005]; void init() { fact[0] = 1; for (int i = 1; i <= 500000; i++) fact[i] = fact[i - 1] * i; inv[500000] = fact[500000].inv(); for (int i = 500000; i >= 1; i--) inv[i - 1] = inv[i] * i; } int main() { fast_io(); int n; cin >> n; init(); mint ans = 0; for (int i = 1; i <= n / 2; i++) { ans += fact[n] * inv[i] * inv[i] * inv[n - 2 * i]; } if (n > 1) { ans /= 2; } cout << ans.val() << endl; }