#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll mod=998244353;
ll dp[1000050];
ll f[2000050];
int main()
{
    int n;
    for(int i=1;i<=2000000;i++)
    {
        for(int j=1;j*i<=2000000;j++)
        {
            f[i*j]++;
        }
    }
    cin>>n;
    dp[1]=1;
    dp[0]=0;
    ll tmp=1;
    for(int i=2;i<=n;i++)
    {  dp[i-1]+=dp[i-2];
        dp[i]=dp[i-1]+f[i]; 
        dp[i]%=mod;
        //tmp+=dp[i];
        //tmp%=mod;
    }
    cout<<dp[n]<<endl;
    return 0;
}