#include using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(0); int n; long long k; cin >> n >> k; unordered_map dp; dp.reserve(210000); dp[k] = 1; for (int i = 1; i <= n; ++i) { unordered_map nex = dp; for (auto& j : dp) { if (j.first >= i) { nex[j.first / i] += j.second; } } dp = nex; } long long ans = 0; for (auto& i : dp) { ans += i.second; } cout << ans - 1 << '\n'; return 0; }