#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define popcount __builtin_popcount using namespace std; typedef long long int ll; typedef pair P; int main() { ll n, k; cin>>n>>k; ll ans=0; for(ll i=1; i*i<=k; i++){ if(k%i!=0) continue; ll c1=max(0ll, min(i-1, n)-max(1ll, i-n)+1); ll c2=max(0ll, min(k/i-1, n)-max(1ll, k/i-n)+1); if(i*i