#include #include #include #include #include #include #include #include #include #include #include #include #include #include #define debug_value(x) cerr << "line" << __LINE__ << ":<" << __func__ << ">:" << #x << "=" << x << endl; #define debug(x) cerr << "line" << __LINE__ << ":<" << __func__ << ">:" << x << endl; template inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } using namespace std; typedef long long ll; template vector> vec2d(int n, int m, T v){ return vector>(n, vector(m, v)); } template vector>> vec3d(int n, int m, int k, T v){ return vector>>(n, vector>(m, vector(k, v))); } template void print_vector(vector v, char delimiter=' '){ if(v.empty()) { cout << endl; return; } for(int i = 0; i+1 < v.size(); i++) cout << v[i] << delimiter; cout << v.back() << endl; } using mint = atcoder::modint998244353; ostream& operator<<(ostream& os, const mint& m){ os << m.val(); return os; } using P = pair; map factorize(ll n){ ll m = n; map ans; for(ll p = 2; p*p <= n; p++){ if(m%p != 0) continue; int cnt = 0; while(m%p == 0){ cnt++; m /= p; } ans[p] = cnt; } if(m != 1) ans[m] = 1; return ans; } vector divs(ll n){ vector ans; for(ll x = 1; x*x <= n; x++){ if(n%x != 0) continue; ans.push_back(x); if(x*x != n) ans.push_back(n/x); } sort(ans.begin(), ans.end()); return ans; } int main(){ ios::sync_with_stdio(false); cin.tie(0); cout << setprecision(10) << fixed; ll n; cin >> n; auto v = divs(n); auto mp = factorize(n); vector p; for(auto [x, y]: mp) p.push_back(x); int m = v.size(); auto c = vec2d(m, p.size(), 0); for(int i = 0; i < m; i++){ ll cur = v[i]; for(int j = 0; j < p.size(); j++){ while(cur%p[j] == 0){ cur /= p[j]; c[i][j]++; } } } vector dp(m); dp[0] = 1; for(int i = 0; i < m; i++){ for(int j = 0; j < i; j++){ if(v[i]%v[j] != 0){ continue; } mint x = 1; for(int k = 0; k < p.size(); k++){ if(c[i][k] == c[j][k]){ x *= c[i][k]+1; } // cout << c[i][k] << ' ' << c[j][k] << endl; } dp[i] += dp[j]*x; // cout << v[j] << "->" << v[i] << ' ' << x << endl; } } cout << dp.back() << endl; }