#include using namespace std; #define int long long #define ri register #define pii pair #define F first #define S second #define pb push_back const int inf=0x3f3f3f3f; inline int rd(){ int x=0,y=1;char c=getchar(); for(;c<'0'||c>'9';c=getchar())if(c=='-')y=-1; for(;c>='0'&&c<='9';c=getchar())x=(x<<1)+(x<<3)+(c^48); return x*y; } const int mod=998244353,N=2e5+5; int ans,n,fac[N]; int ksm(int x,int y){ int res=1; for(;y;y>>=1,x=x*x%mod)if(y&1)res=res*x%mod; return res; } int sq(int x){ return x*x%mod; } signed main(){ n=rd();fac[0]=1; for(int i=1;i<=n;i++)fac[i]=fac[i-1]*i%mod; for(int i=2;i<=n-2;i++) ans=(ans+sq(fac[n]*ksm(fac[n-i-2]*fac[i-2]%mod*i%mod*(n-i)%mod*(n-1)%mod,mod-2)%mod))%mod; cout<