#include <bits/stdc++.h>

using namespace std;
typedef long long LL;
const int MOD = 998244353, NMAX = 1e6 + 5;

int dp[NMAX];

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);

    int n;

    cin >> n;

    int suma;

    for(int i = 1; i <= n; i++)
        for(int j = i + i; j <= n; j += i)
            dp[j]++;


    dp[0] = suma = 1;

    for(int i = 1; i <= n; i++)
    {
        dp[i] = (suma + dp[i]) % MOD;
        suma = (suma + dp[i]) % MOD;
    }

    cout << dp[n];

    return 0;
}
