fn main() { input!{ n: usize, } let mut imos = vec![0usize; n+9]; for i in 1..=n { let mut multi = 1; while i * multi <= n { let range_min = i * multi; let range_max = min( i * (multi+1), n+1); imos[range_min] += multi; imos[range_max] %= MOD93; imos[range_max] += MOD93 - multi; imos[range_max] %= MOD93; multi += 1; } } let mut ans = 0; for i in 0..=n { imos[i+1] += imos[i]; imos[i+1] %= MOD93; ans += imos[i]; ans %= MOD93; } println!("{}", ans); } // const MOD17: usize = 1000000007; const MOD93: usize = 998244353; // const INF: usize = 1 << 60; // let dx = vec![!0, 0, 1, 0]; // 上左下右 // let dy = vec![0, !0, 0, 1]; // 上左下右 // let d = vec!{(!0, 0), (0, !0), (1, 0), (0, 1)}; // 上左下右 #[allow(unused)] use proconio::{input, marker::Chars, marker::Usize1}; #[allow(unused)] use std::{ mem::swap, cmp::min, cmp::max, cmp::Reverse, collections::HashSet, collections::BTreeSet, collections::HashMap, collections::BTreeMap, collections::BinaryHeap, collections::VecDeque, iter::FromIterator, };