#include #define M 998244353 using namespace std; int add(int x, int y){x += y;return x >= M? x - M : x;} int mul(int x, int y){return 1ll * x * y % M;} int pw2(int x){return mul(x, x);} template int mul(int x, int y, int z, Args... arg){return mul(mul(x, y), z, arg...);} int n, rs, fc[100010], iv[100010], ivfc[100010]; int main(){ ios::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr); cin >> n;fc[0] = fc[1] = ivfc[0] = ivfc[1] = iv[1] = 1; for (int i = 2; i <= n; ++i)fc[i] = mul(fc[i - 1], i), iv[i] = mul(iv[M % i], M - M / i), ivfc[i] = mul(ivfc[i - 1], iv[i]); for (int A = 2, B = n - 2; B >= 2; ++A, --B)rs = add(rs, pw2(mul(fc[n], ivfc[A - 2], ivfc[B - 2], iv[A], iv[B], iv[n - 1]))); cout << rs << endl; return 0; } /* 4 4 2 0 2143 634982576 */