#include <bits/stdc++.h>
#define fst first
#define snd second
#define fore(i,a,b) for(int i=a,ThxDem=b;i<ThxDem;++i)
#define pb push_back
#define ALL(s) s.begin(),s.end()
#define FIN ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define SZ(s) int(s.size())
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;

const int MAXN=1e6+10;
int dp[MAXN],am[MAXN];

const int MOD=998244353;
int add(int x, int y){x+=y;if(x>=MOD)x-=MOD;return x;}

int main() {FIN;
	int n; cin>>n;
	fore(i,1,n+1) for(int j=i+i;j<=n;j+=i) am[j]++;
	int s=1;
	fore(i,1,n+1) dp[i]=add(s,am[i]), s=add(s,dp[i]);
	cout<<dp[n]<<"\n";
}