#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
int main(){
	freopen("employ.in","r",stdin);
	freopen("employ.out","w",stdout);
	long long  n;
	scanf("%lld",&n);
	printf("%lld",n%998244353);
	return 0;
} 
