#include <bits/stdc++.h>
using namespace std;
#define int long long
const int N=1e6+10,mod=998244353;
int n,m,k;
int dp[N];
int r[N];
signed main(){
	int T,x,y,z;
	cin>>n;
	for (int i=1;i<=n;i++){
		for (int j=i;j<=n;j+=i){
			r[j]++;
		}
	}
	int sum=0;
	dp[1]=1;sum=1;
	for (int i=2;i<=n;i++){
		dp[i]=sum+r[i];
		sum+=dp[i];
		sum%=mod;
	}
	cout<<dp[n]%mod<<endl;
	//system("pause");
	return 0;
}