#include <iostream>
#include <cstdio>
#define R register
#define int long long
#define MAXN 1000010
using namespace std;
const int mod = 998244353;
int n, sum = 2;
int f[MAXN], cnt[MAXN];
signed main()
{
	f[0] = f[1] = 1;
	scanf("%lld", &n);
	for(R int i = 1; i <= n; i++) for(R int j = 1; i * j <= n; j++) cnt[i * j]++;
	for(R int i = 2; i <= n; i++)
	{
		f[i] = sum % mod;
		f[i] = (f[i] + cnt[i] - 1) % mod;
		sum = (sum + f[i]) % mod;
	}
	printf("%lld\n", f[n] % mod);
	return 0;
}
