Question
Matrix Hunt

Kiran is tasked with analyzing a square grid of size M. At the intersection of the p-th row and q-th column (1 ≤ p, q ≤ M), the value is p x q. Given an integer X, determine how many times X appears in the grid.

Input
The first and the only line of input contains two space-separated integers M and X.

Constraints
1 ≤ M ≤ 105
1 ≤ X ≤ 109
Output
Print the number of times integer X occurs in the matrix of side length M.
Example
Sample Input
3 2
Sample Output
2
Explanation
The matrix would be as follows:
1 2 3
2 4 6
3 6 9
As we can see, 2 is present two times in this matrix.

Online