#include using namespace std; using i64 = int64_t; constexpr i64 mod = 998244353; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); i64 n; cin >> n; vector p, d; for (i64 i = 1; i * i <= n; i += 1) { if (n % i == 0) { d.push_back(i); if (i * i != n) { d.push_back(n / i); } } } sort(d.begin(), d.end()); for (i64 i = 2; i * i <= n; i += 1) { if (n % i == 0) { p.push_back(i); while (n % i == 0) { n /= i; } } } if (n > 1) { p.push_back(n); } vector f(d.size()); f[0] = 1; for (int i = 0; i < d.size(); i += 1) { for (int j = 0; j < i; j += 1) { if (d[i] % d[j] == 0) { i64 x = d[i] / d[j], y = 1; for (i64 pi : p) { if (x % pi != 0) { int z = 1; for (i64 di = d[i]; di % pi == 0; di /= pi) { z += 1; } y *= z; } } f[i] = (y % mod * f[j] + f[i]) % mod; } } } cout << f.back(); }