#include<cstdio>
#include<algorithm>

const int N=1e6;
const int P=998244353;

int n,f[N+10],cnt[N+10];

inline void init(){
	for (int i=1;i<=N;i++)
		for (int j=i;j<=N;j+=i)
			cnt[j]++;
}

int main(){
	init();
	scanf("%d",&n);
	int sum=1;
	f[1]=1;
	for(int i=2;i<=n;i++){
		f[i]=cnt[i]+sum;f[i] %= P;
		sum+=f[i];sum%=P;
	}
	printf("%d\n",f[n]);
	return 0;
}
