#include using namespace std; using Int = long long; const char newl = '\n'; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a void drop(const T &x){cout< vector read(size_t n){ vector ts(n); for(size_t i=0;i>ts[i]; return ts; } //INSERT ABOVE HERE signed main(){ cin.tie(0); ios::sync_with_stdio(0); Int n,k; cin>>n>>k; auto way=[&](Int x)->Int{ if(x<=1) return 0; if(x>n*2) return 0; // [2, n + 1] if(x<=n+1) return x-1; // [n + 1, 2n] return n*2-x+1; }; Int ans=0; for(Int x=2;x*x<=k;x++){ if(k%x) continue; ans+=way(x)*way(k/x); if(x*x!=k) ans+=way(x)*way(k/x); } cout<