#define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; #include using namespace std; const int MOD=998244353; map prime_factor(ll x){ map res; for(ll i=2;i*i<=x;i++){ while(x%i==0){ res[i]++; x/=i; } } if(x!=1) res[x]++; return res; } ll modpow(ll x,ll n){ ll ans=1; while(n){ if(n&1) ans=ans*x%MOD; x=x*x%MOD; n/=2; } return ans; } int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); int n; cin>>n; map M; for(int i=1;i<=n/2;i++){ ll x=i; ll y=n-i; map m=prime_factor(x*y); for(auto t:m){ M[t.first]=max(M[t.first],t.second); } } ll ans=1; for(auto t:M){ ans=ans*modpow(t.first,t.second)%MOD; } cout<