#pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #include using namespace std; using ll = long long; using P = pair; #define fix(x) fixed << setprecision(x) #define asc(x) x, vector, greater #define rep(i, n) for(ll i = 0; i < n; i++) #define all(x) (x).begin(),(x).end() templatebool chmin(T&a, const T&b){if(a>b){a=b;return 1;}return 0;} templatebool chmax(T&a, const T&b){if(a> n; unordered_map mp; vector d; for(ll i=1;i*i<=n;i++){ if(n%i) continue; d.push_back(i); if(i*i!=n){ d.push_back(n/i); } } mp[1] = 1; sort(all(d)); for(auto& x:d){ q = mp[x]; for(auto& y:d){ if(!(x%y)) continue; ll k = x/__gcd(x,y)*y; if(!(n%k)){ ll& m = mp[k]; m += q; if(m>=MOD) m -= MOD; } } } cout << mp[n] << '\n'; return 0; }