#include using namespace std; int main() { int64_t n, k, m; cin >> n >> k >> m; if (n == 1) { cout << 1 << endl; return 0; } vector> pf; for (int64_t i = 2; i * i <= n; i++) { if (n % i == 0) { pf.push_back({i, 0}); } while (n % i == 0) { pf.rbegin()->second++; n /= i; } } if (n != 1) { pf.push_back({n, 1}); } sort(pf.begin(), pf.end()); for (auto &p : pf) { p.second *= k; } auto f = [&](auto &g, int64_t now = 1, int64_t i = 0) -> int64_t { if (i == pf.size()) { return 1; } int64_t r = 0; for (int64_t j = 0, p = 1; j <= pf[i].second; j++, p *= pf[i].first) { if (m < now * p) { break; } r += g(g, now * p, i + 1); } return r; }; cout << f(f) << endl; return 0; }