use proconio::input; const MOD: u64 = 998244353; fn main(){ input!{ n: u64, } println!("{}", n*(n-1)%MOD); }