def make_divisors(n): divisors = [] i = 1 while i * i <= n: if n % i == 0: divisors.append(i) j = n // i if i != j: divisors.append(j) i += 1 return divisors def f(x): a = max(1, x - N) b = min(N, x - 1) return max(0, b - a + 1) N = int(input()) K = int(input()) ans = 0 for x in make_divisors(K): y = K // x ans += f(x) * f(y) print(ans)